Re: Re : How can do change default locale? (UTC time)
> Chealer9:
> Jeremy just replied saying he might check this when back from vacation although he obviously stopped using TIki.
Hehe, I think I remember some comments about it taking its time from the server, do we know the commit message saying why it was removed?
The function to modify is:
lib/smarty_tiki/modifier.tiki_long_datetime.php
lib/smarty_tiki/modifier.tiki_short_datetime.php
Copy to clipboard
return smarty_modifier_tiki_date_format($string, $tikilib->get_long_datetime_format(), null, tra("%A %d of %B, %Y[%H:%M:%S %Z]"));
to read:
Copy to clipboard
return smarty_modifier_tiki_date_format($string, $tikilib->get_long_datetime_format(), null, tra("%A %d of %B, %Y %H:%M:%S"));
removing the and dropping the %Z (timezone) or changing it to:
Copy to clipboard
return smarty_modifier_tiki_date_format($string, $tikilib->get_long_datetime_format(), null, tra("%A %d of %B, %Y[%H:%M:%S GMT]"));
for hardcoded GMT as most of my site dont allow users to change to the timezone 😊