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
}
hi Chado.
Your code is perfect.
It is caused by my careless mistake.
Thanks a lot!