Page 1 of 1
[FIX] Today/Yesterday on other timezones

Posted:
Sun May 14, 2006 3:01 pm
Author: evolver
[size=99px]
REPLACE[code] // // GET THE TIME TODAY AND YESTERDAY // /*$today_ary = explode('|', create_date('m|d|Y', time(),$board_config['board_timezone'])); $board_config['time_today'] = gmmktime(0 - $board_config['board_timezone'] - $board_config['summer_time'],0,0,$today_ary[0],$today_ary[1],$today_ary[2]); */ $today_ary = explode('|', create_date('m|d|Y', time(),$board_config['board_timezone'])); $time_today_used = mktime(0,0,0,$today_ary[0],$today_ary[1],$today_ary[2]); $board_config['time_today'] = $time_today_used; if ( isset($userdata['user_timezone']) ) { $zonedifference = $board_config['real_board_timezone'] - $board_config['board_timezone']; $usersummertime = 0; $boardsummertime = 0; if($userdata['user_summer_time']) $usersummertime = 1; if($board_config['summer_time']) $boardsummertime = 1; $zonedifference = (($board_config['real_board_timezone'] + $boardsummertime) - ($board_config['board_timezone'] + $usersummertime)); $board_config['time_today'] = $time_today_used + ($zonedifference * 3600); } $board_config['time_yesterday'] = $board_config['time_today'] - 86400; //unset($today_ary); //-- end mod ]
Hope this helps for everyone now <img>
Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun May 14, 2006 6:02 pm
Author: evolver
This modification has been added to integrmod.com, I see

Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun May 14, 2006 6:17 pm
Author: Helter
yes it has... Thank you!

Posted:
Sun May 14, 2006 8:21 pm
Author: Michaelo
evolver... <img>
Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun May 14, 2006 8:29 pm
Author: Helter
you need to recruit him Mike <img>
Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun May 14, 2006 8:34 pm
Author: Michaelo
Did a nice job on the bbcode special as well <img>
Re: [FIX] Today/Yesterday on other timezones

Posted:
Mon May 15, 2006 12:42 am
Author: evolver

Posted:
Mon May 15, 2006 5:47 am
Author: Eon
Yes, someone else Push Jasons BBcode. I tried but not getting much footing for 141. LOL

Posted:
Mon May 15, 2006 6:34 am
Author: Michaelo
Im just waiting for his final and then it goes to 1.4.1 beta for beta test. <img>

Posted:
Tue May 16, 2006 4:38 am
Author: Eon
Come on Jason!!! LOL
Also Evolver this is not to fix the wrong date for the birthdaysw and stuff is it?
That one is annoying as well.

Posted:
Tue May 16, 2006 6:33 am
Author: tekguru
Well done that man - now in there!
Re: [FIX] Today/Yesterday on other timezones

Posted:
Thu May 18, 2006 10:14 am
Author: evolver
Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun Jul 09, 2006 3:20 am
Author: evolver
This fix seems to be out of the integrmod.com site?
Posts after midnight in this forum are marked as yesterday again...
Re: [FIX] Today/Yesterday on other timezones

Posted:
Sun Jul 09, 2006 11:40 am
Author: Teelk
Wish I had seen this earlier, I would have added it to the last update... <img>
And, because it wasn't added to the update, when the premodded files were used to update this site, the fix was lost. I'll add it again.

Posted:
Wed Jul 19, 2006 9:50 pm
Author: Unregistered
i placed the codes in the first post.. but it stil reads server time from my site.. hmm any idea?
Re: [FIX] Today/Yesterday on other timezones

Posted:
Thu Jul 20, 2006 12:19 am
Author: evolver
Did you place or replace?

Posted:
Thu Jul 20, 2006 4:35 am
Author: Unregistered
i replaced it.. did the topic review as well..
check
http://www.kotari.net you can do a test post in freedback and questions forum.. no need for registeration..
or am i missing a settin in the ACP?
also it shows a rong date when i post the news in the portal page as well..
Re: [FIX] Today/Yesterday on other timezones

Posted:
Thu Jul 20, 2006 2:15 pm
Author: evolver
The time in ACP > General Admin > Configuration has to be servertime!!!
This time depends on the location of your server...
Then, in ACP > General Admin > Configuration+ you can enter your local time...
And don't forget about daylightsavingtimezone
Also in profile, each member can set his/her ovn time...
Important note:
Everything you change in config+, doesn't always apply to your own profile...
So, you have to double-check the timezone-configuration in your own profile (out of ACP)...

Posted:
Thu Jul 20, 2006 4:03 pm
Author: Unregistered
got it fixed.. thanks <img>
Re: [FIX] Today/Yesterday on other timezones

Posted:
Fri Jul 21, 2006 12:49 am
Author: evolver
No problem

Maybe we should make it more clear in the ACP!!
Setting up the configuration for the right timezone has always been the first thing users struggle with...
By adding a few EXPLAIN lines in the ACP, this could be made more clear for everyone...
That would even be better than adding instructions to the KB.
So here's a suggestion to the team... <img>
Instead of using the KB for instruction on every problem, we could make the ACP more userfriendly for everyone...
Re: [FIX] Today/Yesterday on other timezones

Posted:
Fri Jul 21, 2006 2:00 am
Author: CSorin
Great fix, Evolver!
Both, your solution and your explanations saved me a lot of time!
Thanks! <img>

Posted:
Fri Jul 21, 2006 4:16 am
Author: Unregistered
i agree with evolver's suggestion <img>

Posted:
Mon Feb 05, 2007 12:19 pm
Author: ScottDaMan
I just wanted to reference my issue with this:
http://www.integramod.com/forum/viewtopic.php?t=2923I'm officially at a loss as to what to try next.