How can do change default locale? (UTC time) Posted by carrot 09 Feb 2004 05:53 GMT-0000 posts: 3 ๐ Hello Tiki Users. I want to change that all users displayed time zone to LOCAL from UTC How can do it ? Thank you for reading this.
Posted by Damian Parker 09 Feb 2004 12:43 GMT-0000 posts: 2881 Hi This used to be available under Admin->General but since the recent release its no where to be point! I'm unsure of the answer to this one โ Damian
Posted by hengis 27 Apr 2004 07:32 GMT-0000 posts: 18 Hello All, Was there any resolution to this? - I would like to change the TZ on my site but am a bit unsure how to do it - or where to set the correct variable!
Posted by hengis 27 Apr 2004 07:32 GMT-0000 posts: 18 Hello All, Was there any resolution to this? - I would like to change the TZ on my site but am a bit unsure how to do it - or where to set the correct variable!
Posted by Philippe Cloutier 27 Apr 2004 22:36 GMT-0000 posts: 1001 The HTML code in tiki-admin-include-general.tpl was commented before 1.7.0 release on revision 1.7.2.8. I emailed Jeremy about this changed and mentioned this information request. Let's hope he's not dead since he didn't log on tw.o since august. If no answer maybe someone can figure out what was done checking the changes : http://cvsmonitor.tikiwiki.org/cvsmonitor.pl?cmd=viewBrowseAuthor&author=jjongsma&module=Tikiwiki.Tikiwiki
Posted by Damian Parker 28 Apr 2004 00:11 GMT-0000 posts: 2881 > Chealer9: > The HTML code in tiki-admin-include-general.tpl was commented before 1.7.0 release on revision 1.7.2.8. I emailed Jeremy about this changed and mentioned this information request. Let's hope he's not dead since he didn't log on tw.o since august. > If no answer maybe someone can figure out what was done checking the changes : > http://cvsmonitor.tikiwiki.org/cvsmonitor.pl?cmd=viewBrowseAuthor&author=jjongsma&module=Tikiwiki.Tikiwiki Just do what I do, and modify the smarty file directly to show GMT and remove the from around the time ๐ Damian
Posted by hengis 28 Apr 2004 07:37 GMT-0000 posts: 18 I have no experience of Hacki ^H^H^H^H^H altering Smarty ๐ - Give me a clue t get started. I looked throught some of the files but dont see where tz is set Cheers
Posted by Damian Parker 28 Apr 2004 00:11 GMT-0000 posts: 2881 > Chealer9: > The HTML code in tiki-admin-include-general.tpl was commented before 1.7.0 release on revision 1.7.2.8. I emailed Jeremy about this changed and mentioned this information request. Let's hope he's not dead since he didn't log on tw.o since august. > If no answer maybe someone can figure out what was done checking the changes : > http://cvsmonitor.tikiwiki.org/cvsmonitor.pl?cmd=viewBrowseAuthor&author=jjongsma&module=Tikiwiki.Tikiwiki Just do what I do, and modify the smarty file directly to show GMT and remove the from around the time ๐ Damian
Posted by hengis 28 Apr 2004 07:37 GMT-0000 posts: 18 I have no experience of Hacki ^H^H^H^H^H altering Smarty ๐ - Give me a clue t get started. I looked throught some of the files but dont see where tz is set Cheers
Posted by Philippe Cloutier 28 Apr 2004 12:25 GMT-0000 posts: 1001 Jeremy just replied saying he might check this when back from vacation although he obviously stopped using TIki.
Posted by Damian Parker 28 Apr 2004 13:56 GMT-0000 posts: 2881 > 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 clipboardreturn 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 clipboardreturn 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 clipboardreturn 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 ๐ Damian
Posted by hengis 28 Apr 2004 15:33 GMT-0000 posts: 18 > > 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")); > > Oi thats cheating ๐ All your doing is removing the time stamp - which I had done via Admin | General (I think) I am in the UK and BST means the time is out by an hour how do I set the default TZ to GMT. Strangely If a user logs in it corrects itself to but the %Z does not resolve to anything ๐ I Think I should do something with Setlocale in my PHP.ini - Is that a good idea?
Posted by Damian Parker 28 Apr 2004 15:39 GMT-0000 posts: 2881 > hengis: > > > > 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")); > > > > > > Oi thats cheating ๐ Works for me ๐ > All your doing is removing the time stamp - which I had done via Admin | General (I think) > > I am in the UK and BST means the time is out by an hour how do I set the default TZ to GMT. Me too! Get yourself down on the TikiFestUK > Strangely If a user logs in it corrects itself to but the %Z does not resolve to anything ๐ > > I Think I should do something with Setlocale in my PHP.ini - Is that a good idea? Possibily, Id need to read up a little too ๐ Damian
Posted by Damian Parker 28 Apr 2004 13:56 GMT-0000 posts: 2881 > 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 clipboardreturn 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 clipboardreturn 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 clipboardreturn 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 ๐ Damian
Posted by hengis 28 Apr 2004 15:33 GMT-0000 posts: 18 > > 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")); > > Oi thats cheating ๐ All your doing is removing the time stamp - which I had done via Admin | General (I think) I am in the UK and BST means the time is out by an hour how do I set the default TZ to GMT. Strangely If a user logs in it corrects itself to but the %Z does not resolve to anything ๐ I Think I should do something with Setlocale in my PHP.ini - Is that a good idea?
Posted by Damian Parker 28 Apr 2004 15:39 GMT-0000 posts: 2881 > hengis: > > > > 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")); > > > > > > Oi thats cheating ๐ Works for me ๐ > All your doing is removing the time stamp - which I had done via Admin | General (I think) > > I am in the UK and BST means the time is out by an hour how do I set the default TZ to GMT. Me too! Get yourself down on the TikiFestUK > Strangely If a user logs in it corrects itself to but the %Z does not resolve to anything ๐ > > I Think I should do something with Setlocale in my PHP.ini - Is that a good idea? Possibily, Id need to read up a little too ๐ Damian
Posted by jcrockett 21 Jul 2004 22:52 GMT-0000 posts: 6 Here's my solution: open file: modifier.tiki_date_format.php change: Line 22 from: else $format = preg_replace(???/%Z/???, โUTC???,$format); to: else $format = strftime(" No value assignedd.%Y %H:%M %Z"); This gives the current time wherever the server is. I actually removed the time stamp (%H:%M %Z) and just have the date stamp so there's no confusion. If you log in, you get the time stamp from your preferences. Hope it didn't screw something else up...
Posted by Bernard Sfez / Tiki Specialist 23 Jul 2004 08:01 GMT-0000 posts: 8648 Hello jcrockett, I'm on my way to do the modif you've post. But after reflexion, i don't want to show the "server" time, but the time i choose ! ๐ Can you be kind to show me (add) a line that could implement a (servertime)+/-n options (meaning i want tiki to show the server time +/- n hours) for anybody... ? Pleazzee ? ๐