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:
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 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
Copy to clipboard
{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?


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting