Changeset 7956 for trunk/prototype/modules/calendar/schedules.php
- Timestamp:
- 03/05/13 14:01:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/schedules.php
r7952 r7956 146 146 $result[$i]['DayLigth'] = $DayLigth; 147 147 148 148 149 if(isset( $v['occurrences'] ) && count( $v['occurrences'] ) > 0){ 149 150 151 $date->setTimestamp((int) ($v['startTime'] / 1000)); 152 $date->setTimezone( new DateTimeZone( $v['timezone'] )); 153 150 154 foreach( $result[$i]['occurrences'] as &$o){ 151 155 152 $date->setTimestamp((int) ($o / 1000)); 153 $o = ($date->getTimestamp() + $date->getOffset()).'000'; 156 $o = ((int) ($o / 1000) + $date->getOffset()).'000'; 154 157 155 158 }
Note: See TracChangeset
for help on using the changeset viewer.