Sub Menu
Links Menu
Online Users

In total there are 321 users online :: 1 registered, 0 hidden and 320 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Google [Bot] based on users active over the past 60 minutes

Calendar & Date Problems

Any feedback, suggestion and comments relating to the IntegraMOD project can be posted here. NO bug reports should be posted in this forum

Moderator: Integra Moderator

Calendar & Date Problems

PostAuthor: Eon » Fri May 12, 2006 7:58 am

OK, I want to get all the input from the users about this.

What are all the problems that occuir with the dates being wrong on the calendar events?

Birthdays, events, etc.

If you have done any digging in this post code you think that might be suspect.

We want to try to fix this for 141, and I believe we are going to have to have all the help we can get.

If somebody still has a 132 forum, and the birthday events are working properly, then please speak up. We may need to use 132 code in order to fix this problem.

This is a community project, so let's all work together and get this annoying problem fixed for the next release.
Last edited by Eon on Wed Dec 31, 1969 4: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 9:15 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri May 12, 2006 8:11 am

I have two sites running IntegraMod 1.4.0 (phpBB 2.0.19 and 2.0.20) and the problem exists on both sites.

If you are in the same timezone as the server, everything appears fine, but if you are in a different timezone, then the problem appears. It looks like it is reading server time, instead of whatever method is used for determining the user's local time.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Calendar & Date Problems

PostAuthor: Master Dwarf » Fri May 12, 2006 8:45 am

I too am running 1.40 with all the updates in place.

One thing I notice is for recurring events, it is minor but can be a bit annoying.

You post a event to recur every x amount of days. The end date you choose must have a time that is later than your start date or the last day of the event will not display on the calendar. Example may be in order:

Topic: Card Game
Msg: To be at Freds at 6pm every Wednesday for month of May
Calendar event: 'select first wednesday, time defaults to posting time->change if desired'
Until: 'select last wednesday of month-time defaults to posting time'
Repeats: 1 week

Given the example if the time defaults are the same, the last wednesday, in the calendar, will not display the event. If you change it so that the time is AFTER the one displayed in 'Calendar event' field, then all is good.
Last edited by Master Dwarf on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:26 am
Cash on hand: 0.00
Location: Madison, WI

Re: Calendar & Date Problems

PostAuthor: evolver » Fri May 12, 2006 9:53 am

Also, a complete translation of the calendar seems to be almost impossible...

I just say almost, because there has to be a way...
...there is always a way...

I tried...but I haven't found it yet <img>
Even when dates are translated after input, they won't be recognized by edit...
So, for every change on a topic-event, the date has to be entered again or that date will change to Dec 1969
That's a real hard-coded problem and a very annoying one as well...
Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Calendar & Date Problems

PostAuthor: evolver » Sat May 13, 2006 5:13 pm

Why twice the same code on functions.php ???
-function user2boardtime(&$usertime)
-function board2usertime(&$usertime)
Code: Select all
function user2boardtime(&$usertime){     global $board_config, $db, $userdata;     if(!isset($board_config['real_board_timezone'])){         $sql = "select config_value from ".CONFIG_TABLE." where config_name = 'board_timezone'";         if(!$result = $db->sql_query($sql) ) {                 message_die(GENERAL_ERROR, 'Could not retrieve board_timezone', '', __LINE__, __FILE__, $sql);         }         $row = $db->sql_fetchrow($result);         $board_config['real_board_timezone'] = $row['config_value'];     }     $zonediff = $board_config['real_board_timezone'] - $board_config['board_timezone'];     $usersummer = 0;     $boardsummer = 0;     $summer = 0;     if($userdata['user_summer_time']) $usersummer = 1;     if($board_config['summer_time']) $boardsummer = 1;     if($boardsummer != $usersummer){         $summer = $boardsummer - $usersummer;     }     $zonediff = $zonediff + $summer;     $zonediff = $zonediff * 3600;     $usertime = $usertime + $zonediff; }  function board2usertime(&$usertime){     global $board_config, $db, $userdata;     if(!isset($board_config['real_board_timezone'])){         $sql = "select config_value from ".CONFIG_TABLE." where config_name = 'board_timezone'";         if(!$result = $db->sql_query($sql) ) {                 message_die(GENERAL_ERROR, 'Could not retrieve board_timezone', '', __LINE__, __FILE__, $sql);         }         $row = $db->sql_fetchrow($result);         $board_config['real_board_timezone'] = $row['config_value'];     }     $zonediff = $board_config['board_timezone'] - $board_config['real_board_timezone'];     $usersummer = 0;     $boardsummer = 0;     $summer = 0;     if($userdata['user_summer_time']) $usersummer = 1;     if($board_config['summer_time']) $boardsummer = 1;     if($boardsummer != $usersummer){         $summer = $usersummer - $boardsummer;     }     $zonediff = $zonediff + $summer;     $zonediff = $zonediff * 3600;     $usertime = $usertime + $zonediff; }

Both functions are almost completely the same with different names.
Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Adrian Rea » Sun May 14, 2006 12:26 am

the 2 functions are to standardise the time differences from when the user enters a date, and a date known to the server. there are 16 instances of one and 8 of the other in the code.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

Re: Calendar & Date Problems

PostAuthor: evolver » Sun May 14, 2006 5:25 am

Thanks Adrian :)
This modification isn't optimal yet, it's just a start...


[hr:e4x0kx4q][align=center:e4x0kx4q][size=99px]

In functions.php

I replaced[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']));         $board_config['time_today'] = mktime(0,0,0,$today_ary[0],$today_ary[1],$today_ary[2]);         $board_config['time_yesterday'] = $board_config['time_today'] - 86400;         //unset($today_ary);         //-- end mod ]
With][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']) )             {                 $board_config['time_today'] = $time_today_used - 25200;             }                 $board_config['time_yesterday'] = $board_config['time_today'] - 86400;         //unset($today_ary);         //-- end mod ][hr:e4x0kx4q]
[b]This modification is not optimal yet
, but this is working perfect for [color=red]my timezone
at this moment... :P
Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Calendar & Date Problems

PostAuthor: evolver » Sun May 14, 2006 9:47 am

OK, I think I've got it right now... <img>

There's a function on functions.php that does the same thing:
function board2usertime
That was a good example to complete this code for every configuration...

[size=99px]

[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 <!-- s]HERE[/url]
Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Eon » Tue May 16, 2006 3:44 am

Good Job Evolver.

That will get us going we have so many b ugs with the calendar it seems like.

If there is a way to apply this to birthdays and recurring events we will have the major bugs fixed.
Last edited by Eon on Wed Dec 31, 1969 4: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 9:15 am
Cash on hand: 0.00

PostAuthor: evolver » Tue May 16, 2006 11:12 am

"Eon";p="6067" wrote:Good Job Evolver.

That will get us going we have so many b ugs with the calendar it seems like.

If there is a way to apply this to birthdays and recurring events we will have the major bugs fixed.

Yes, I know...

I would like a complete list of all known timezone-bugs:
- birthdays
- topic review (under the posting editor for answers)
- minical date search
- ...

Can't promise anything, but I will see what I can do...
I've already tried to fix times on the 'topic review', but it didn't work...
Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Calendar & Date Problems

PostAuthor: evolver » Thu May 18, 2006 8:49 am

Last edited by evolver on Wed Dec 31, 1969 4: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 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Eon » Thu May 18, 2006 10:45 am

Nice Evolver. Have you applied for a beta position? Cause with your debugging skills you sure would be handy.
Last edited by Eon on Wed Dec 31, 1969 4: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 9:15 am
Cash on hand: 0.00


Return to IntegraMOD Feedback

Who is online

Registered users: Google [Bot]

cron