Changeset 7967 for branches/2.5
- Timestamp:
- 03/05/13 18:54:01 (11 years ago)
- Location:
- branches/2.5/prototype/modules/calendar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/prototype/modules/calendar/interceptors/DBMapping.php
r7966 r7967 975 975 } 976 976 977 978 977 if(isset( $v['occurrences'] ) && count( $v['occurrences'] ) > 0){ 979 978 979 $date->setTimestamp((int) ($v['startTime'] / 1000)); 980 $date->setTimezone( new DateTimeZone( $v['timezone'] )); 981 980 982 foreach( $result[$i]['occurrences'] as &$o){ 981 983 982 $date->setTimestamp((int) ($o / 1000)); 983 $o = ($date->getTimestamp() + $date->getOffset()).'000'; 984 $o = ($o + $date->getOffset()).'000'; 984 985 985 986 } -
branches/2.5/prototype/modules/calendar/schedules.php
r7955 r7967 143 143 $result[$i]['DayLigth'] = $DayLigth; 144 144 145 145 146 if(isset( $v['occurrences'] ) && count( $v['occurrences'] ) > 0){ 146 147 148 $date->setTimestamp((int) ($v['startTime'] / 1000)); 149 $date->setTimezone( new DateTimeZone( $v['timezone'] )); 150 147 151 foreach( $result[$i]['occurrences'] as &$o){ 148 152 149 $date->setTimestamp((int) ($o / 1000)); 150 $o = ($date->getTimestamp() + $date->getOffset()).'000'; 153 $o = ((int) ($o / 1000) + $date->getOffset()).'000'; 151 154 152 155 }
Note: See TracChangeset
for help on using the changeset viewer.