PEAK XOOPS - Get rid off GMT functionnality in englishin japanese

Get rid off GMT functionnality

  • 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/7/30 22:59
efla  ¾åÅùʼ   Posts: 39
Hello,

Is it possible to get rid off (inactivate) the GMT functionality in piCAL. I understand that for some it could be usefull but for my site it is out of interest and I realize that this is even bringing in a lot of confusion to my users.

Thanks
Votes:0 Average:0.00
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

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!