Loading...
 
Features / Usability

Features / Usability


Re: Re : How can do change default locale? (UTC time)

posts: 2881 United Kingdom

> 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

I usually change this line:
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:
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:

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 smile

Damian

posts: 49 Canada

Not sure this is exactly related; but perhaps...

I changed General Preferences to: H:M in Ottawa (left out % since they screw up posting)

and my tiki-top_bar.tpl is:

Image
{include file="vball_header.tpl"}
{if $feature_calendar eq 'y' and $tiki_p_view_calendar eq 'y'}
  {$smarty.now|tiki_short_datetime}
{else}
  {$smarty.now|tiki_short_datetime}
{/if}
{if $tiki_p_admin eq 'y' and $feature_debug_console eq 'y'}
   // {tr}debug{/tr}
{/if}


BUT for some reason when i am logged in as Admin i get the correct output:

Tue 22 of Jun, 2004 12:49 in Ottawa

but when not logged in; i get GMT (I think??)

Tue 22 of Jun, 2004 16:49 in Ottawa

Any idea why something is changing this based on login level?


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.