TOPIC: program block

program block 7 years 7 months ago #8365

Hello, I installed the module correctly and it works fine with the default data, but when you change the date to set a new deadline I have an error message, that does not make me correct, I have to uninstall the module and reinstall it.
I am using joomla 3.4.5
error:
DateTime::__construct(): Failed to parse time string (25/12/2015) at position 0 (2): Unexpected character
I also tried to change the date by using the calendar button and saw that date is set in the format Month - day - year, and does not give me the above error, but does not display the counter.
Nice graphics, congratulations.
Last Edit: 7 years 7 months ago by superdiogene.
The administrator has disabled public write access.

program block 7 years 6 months ago #8369

No one to answer to this problem? even the creator of the form?
Thank you
The administrator has disabled public write access.

program block 7 years 6 months ago #8370

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2284
  • Thank you received: 998
  • Karma: 121
Hi,

It's a problem from php datetime , could you please let me know exactly this error( where is the file locate ) ?

Thanks
The administrator has disabled public write access.

program block 7 years 6 months ago #8372

thanks for the reply, I do not know if it's a translation problem, but I seem to have translated that ask where the file is locate? and if so, I looked at the site and there is no gains no file called so. If you ask other please let me understand better.
Thanks again for your answer.
The administrator has disabled public write access.

program block 7 years 6 months ago #8375

Hello Trung, I realized the problem and your date format is month / day / year I would like to change in day / month / year and can, as a line of code would I change?
Thank you
The administrator has disabled public write access.

program block 7 years 6 months ago #8376

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2284
  • Thank you received: 998
  • Karma: 121
Hi,

You should find edit this date time format here:
$ot_end_date=DateTime::createFromFormat('m/d/Y', $ot_end_date); (at mod_eventcountdown\tmpl )


Regards,
The administrator has disabled public write access.

program block 7 years 6 months ago #8377

Trendy thanks for the reply, but I notice that the file format of the date is correct in format, but if you see the picture that I attach a discrepancy exists, when I pass the mouse on the field formatting and display other than that indicated in the popup. Why?
The administrator has disabled public write access.

program block 7 years 6 months ago #8378

I attach the image but does not appear, why?
The administrator has disabled public write access.
Time to create page: 0.119 seconds