PEAK XOOPS - Fixed (?) Scheduler detail view problem in englishin japanese

Fixed (?) Scheduler detail view problem

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/2/9 1:59
chado  °ìÅùʼ   Posts: 14
Hello GiJoe, I know you are in the middle of a busy time now, but I thought I would post this in case others could benefit....

I had been having a problem with the date showing incorrectly sometimes. The time was showing correctly, but the date was wrong. My server is a different timezone than where the events are. Here is the solution:

In the piCal.php file, there is a function called: function get_schedule_view_html
Scroll way down to around 1581 and find this section:
// 範囲外の処理/
Add in the timezone offset and it should work.

Hope this helps!
Chad
	// 範囲外の処理//chad add timezone offset here and it should work???
	if( isset( $event->start_date ) ) {
		$start_date_str = $event->start_date ; // GIJ TODO
	} else {
		$start_date_str = strftime( _PICAL_STRFFMT_DATE , $event->start + $tzoffset ) ;//chad added + $tzoffset
	}
	if( isset( $event->end_date ) ) {
		$end_date_str = $event->end_date ; // GIJ TODO
	} else {
		$end_date_str = strftime( _PICAL_STRFFMT_DATE , $event->end + $tzoffset ) ;//chad added + $tzoffset
	}

Votes:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/2/9 11:14
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Chado.

Your code is perfect.
It is caused by my careless mistake.

Thanks a lot!
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!