Ignore:
Timestamp:
03/05/13 14:01:46 (11 years ago)
Author:
acoutinho
Message:

Ticket #3372 - Corrigido problema em horarios de eventos com repeticao de alternao entre horario de verao e inverno

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/schedules.php

    r7952 r7956  
    146146            $result[$i]['DayLigth'] = $DayLigth; 
    147147 
     148 
    148149            if(isset( $v['occurrences'] ) && count( $v['occurrences'] ) > 0){ 
    149150 
     151                $date->setTimestamp((int) ($v['startTime'] / 1000)); 
     152                $date->setTimezone( new DateTimeZone( $v['timezone'] )); 
     153 
    150154                foreach( $result[$i]['occurrences'] as &$o){ 
    151155 
    152                     $date->setTimestamp((int) ($o / 1000)); 
    153                     $o = ($date->getTimestamp() + $date->getOffset()).'000'; 
     156                    $o = ((int) ($o / 1000) + $date->getOffset()).'000'; 
    154157 
    155158                } 
Note: See TracChangeset for help on using the changeset viewer.