PEAK XOOPS - Re: Get rid off GMT functionnality in englishin japanese

Re: Get rid off GMT functionnality

List posts in the topic

question Re: Get rid off GMT functionnality

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2004/7/31 17:17
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi efla.

It's not so easy to eliminate Timezones entirely.

If you only want to remove the string "(GMT-***)" in the sinble schedule view, use this hack.

line 562 in piCal.php
	} else {
		// 通常イベント(ユーザ時間への時差計算あり)
		$tzoffset = intval( ( $this->user_TZ - $this->server_TZ ) * 3600 ) ;
		$disp_user_tz = $this->get_tz_for_display( $this->user_TZ ) ;
		$start_time_str = date( _PICAL_DTFMT_TIME , $event->start + $tzoffset ) . " $disp_user_tz" ;
		$end_time_str = date( _PICAL_DTFMT_TIME , $event->end + $tzoffset ) . " $disp_user_tz" ;
		if( $this->user_TZ != $event->event_tz ) {
			$tzoffset_s2e = intval( ( $event->event_tz - $this->server_TZ ) * 3600 ) ;
			$disp_event_tz = $this->get_tz_for_display( $event->event_tz ) ;
			$start_time_str .= "     <small>" . date( "d " . _PICAL_DTFMT_TIME , $event->start + $tzoffset_s2e ) . " $disp_event_tz</small>" ;
			$end_time_str .= "     <small>" . date( "d " . _PICAL_DTFMT_TIME , $event->end + $tzoffset_s2e ) . " $disp_event_tz</small>" ;
		} 
	}
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!