- Posts: 1931
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
Show time in tool
- admin
-
- Administrator
-
Less
More
IP: 207.229.172.231
13 years 4 months ago #2513
by admin
Olivier.
Replied by admin on topic Re: Show time in tool
Ok, I have one more idea:
the module is using the strtotime PHP function. I went to the API and read that the function actually uses the default time zone of the PHP.ini file (I thought it was using the date.timezone). I saw that your default time zone is set to 'UTC', not 'Europe/Athens'. That may be the problem. Try changing the default time zone. Hopefully that will do it.
the module is using the strtotime PHP function. I went to the API and read that the function actually uses the default time zone of the PHP.ini file (I thought it was using the date.timezone). I saw that your default time zone is set to 'UTC', not 'Europe/Athens'. That may be the problem. Try changing the default time zone. Hopefully that will do it.
Olivier.
- manos2012
-
Topic Author
- New Member
-
Less
More
- Posts: 16
IP: 94.71.149.23
13 years 4 months ago #2521
by manos2012
Replied by manos2012 on topic Re: Show time in tool
Good afternoon
I did this and that but nothing
I did this and that but nothing
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago #2524
by admin
Olivier.
Replied by admin on topic Re: Show time in tool
I am not sure what is wrong with your configuration, so you can try this fix for your site:
in the module's directory, go to /tmpl/default.php.
Try and change the line 113 to:
It eliminates the PHP function strtotime which gives problem here. The hours should reflect the ones you see on K2. Please let me know how that works for you.
in the module's directory, go to /tmpl/default.php.
Try and change the line 113 to:
Code:
$div_extra .= JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC3'));
Olivier.
- manos2012
-
Topic Author
- New Member
-
Less
More
- Posts: 16
IP: 94.71.149.23
13 years 4 months ago #2525
by manos2012
Replied by manos2012 on topic Re: Show time in tool
Good afternoon and thank you for your help!
Unfortunately did nothing continues as before, as if nothing has changed
Unfortunately did nothing continues as before, as if nothing has changed
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago #2526
by admin
Olivier.
Replied by admin on topic Re: Show time in tool
I am sorry, but I am out of options here.
Now that I think about it, I made you change the regular file, not the K2 one. Are your articles coming from K2?
If so, do the same as above but in tmpl/k2.php.
Now that I think about it, I made you change the regular file, not the K2 one. Are your articles coming from K2?
If so, do the same as above but in tmpl/k2.php.
Olivier.
- manos2012
-
Topic Author
- New Member
-
Less
More
- Posts: 16
IP: 94.71.149.23
13 years 4 months ago #2527
by manos2012
Replied by manos2012 on topic Re: Show time in tool
I spent the change in K2.php and achieved
Thank you very much for your time
good evening
Thank you very much for your time
good evening
