PEAK XOOPS - wrong month displayed (border of may 31 and june 1) mini cal in englishin japanese

wrong month displayed (border of may 31 and june 1) mini cal

List posts in the topic

normal wrong month displayed (border of may 31 and june 1) mini cal

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2004/6/1 16:47
zer0fill  一等兵   Posts: 14
Problem: Date shows May 31, 2004 even though my server shows June 1, 2004. Problem is in the mini monthly block calendar (dont know if the weekly, etc blocks are affected as i don't use that).

To test go in ./blocks/pical_mini_calendar.php ~55
echo $cal->month; // displays 6
include( "$mod_path/read_configs.php" ) ;
echo $cal->month; // changes to 5

after some lengthy debugging (before finding the above), i came to the conclusion that the problem is in read_configs.php line ~35. I'm not sure if this is intentional or something you were doing when testing. Anyways, the fix is

./read_configs.php
FROM
$cal->user_TZ = $xoopsUser->timezone() ;
$cal->server_TZ = date( 'Z' ) / 3600 ;
// $cal->server_TZ = $xoopsConfig['server_TZ'] ;
TO
$cal->user_TZ = $xoopsUser->timezone() ;
//$cal->server_TZ = date( 'Z' ) / 3600 ;
$cal->server_TZ = $xoopsConfig['server_TZ'] ;


[edit]
It could have been because of the daylight savings. once it hit 1am (0:00) here, it worked fine with the original code.
[/edit]
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!