[FIX] Today/Yesterday on other timezones

Support for IntegraMOD 140

Moderator: Integra Moderator

[FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Sun May 14, 2006 3:01 pm

[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>
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Sun May 14, 2006 6:02 pm

This modification has been added to integrmod.com, I see :wink:
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: Helter » Sun May 14, 2006 6:17 pm

yes it has... Thank you!
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Michaelo » Sun May 14, 2006 8:21 pm

evolver... <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: Helter » Sun May 14, 2006 8:29 pm

you need to recruit him Mike <img>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: Michaelo » Sun May 14, 2006 8:34 pm

Did a nice job on the bbcode special as well <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Mon May 15, 2006 12:42 am

Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Eon » Mon May 15, 2006 5:47 am

Yes, someone else Push Jasons BBcode. I tried but not getting much footing for 141. LOL
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

PostAuthor: Michaelo » Mon May 15, 2006 6:34 am

Im just waiting for his final and then it goes to 1.4.1 beta for beta test. <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Eon » Tue May 16, 2006 4:38 am

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.
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

PostAuthor: tekguru » Tue May 16, 2006 6:33 am

Well done that man - now in there!
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Thu May 18, 2006 10:14 am

Here's a fix for the topic review as well:
http://integramod.com/forum/viewtopic.php?p=6424#6424
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Sun Jul 09, 2006 3:20 am

This fix seems to be out of the integrmod.com site?
Posts after midnight in this forum are marked as yesterday again...
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: Teelk » Sun Jul 09, 2006 11:40 am

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.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: Unregistered » Wed Jul 19, 2006 9:50 pm

i placed the codes in the first post.. but it stil reads server time from my site.. hmm any idea?
Last edited by Unregistered on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 2:51 pm
Cash on hand: 0.00

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Thu Jul 20, 2006 12:19 am

Did you place or replace?
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Unregistered » Thu Jul 20, 2006 4:35 am

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..
Last edited by Unregistered on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 2:51 pm
Cash on hand: 0.00

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Thu Jul 20, 2006 2:15 pm

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)...
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Unregistered » Thu Jul 20, 2006 4:03 pm

got it fixed.. thanks <img>
Last edited by Unregistered on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 2:51 pm
Cash on hand: 0.00

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: evolver » Fri Jul 21, 2006 12:49 am

No problem :idea: 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...
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [FIX] Today/Yesterday on other timezones

PostAuthor: CSorin » Fri Jul 21, 2006 2:00 am

Great fix, Evolver!
Both, your solution and your explanations saved me a lot of time!

Thanks! <img>
Last edited by CSorin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

CSorin
Newbie
Newbie
 
Posts: 1
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 28, 2006 3:34 am
Cash on hand: 0.00

PostAuthor: Unregistered » Fri Jul 21, 2006 4:16 am

i agree with evolver's suggestion <img>
Last edited by Unregistered on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 2:51 pm
Cash on hand: 0.00

PostAuthor: ScottDaMan » Mon Feb 05, 2007 12:19 pm

I just wanted to reference my issue with this:
http://www.integramod.com/forum/viewtopic.php?t=2923

I'm officially at a loss as to what to try next.
Last edited by ScottDaMan on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]Star Wars United[/url] - My IM141 Board.

ScottDaMan
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 31, 2007 12:40 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]