Ignore:
Timestamp:
03/07/12 00:06:34 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Correcao na criacao e exibicao de alarmes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/interceptors/DBMapping.php

    r5641 r5652  
    4242            $schedulable = Controller::read( array( 'concept' => 'schedulable' , 'id' => $participant['schedulable'] ) , array('startTime' , 'endTime' )  ); 
    4343 
     44                         
     45/*                       
     46                                        if(!is_numeric($params['startTime']) ) 
     47                        $params['startTime'] =  strtotime( $params['startTime'] . ' ' .$params['timezone']).'000'; 
     48                 
     49                if (!is_numeric($params['endTime'])){ 
     50                        $params['endTime'] =   strtotime( $params['endTime'] . ' ' .$params['timezone']).'000'; 
     51                         
     52                        if($params['allDay']) 
     53                                $params['endTime'] =  $params['endTime']  + 86400000; 
     54        */ 
     55 
     56        ob_start(); 
     57        print_r($params); 
     58        print_r($schedulable); 
     59         
     60        $output = ob_get_clean(); 
     61        file_put_contents( "/tmp/acoutinho.log",  $output , FILE_APPEND); 
     62         
     63         
     64                         
    4465            $params['schedulable'] = $participant['schedulable']; 
    45             $params['rangeStart'] = gmdate( 'd-m-Y' , strtotime('- '.$params['time'].' '.self::codeAlarmUnit($params['unit']) , (int)($schedulable['startTime'] / 1000))); 
    46             $params['rangeEnd'] = gmdate( 'd-m-Y' ,(int)($schedulable['endTime'] / 1000)); 
     66            $params['rangeStart'] = strtotime('- '.$params['time'].' '.self::codeAlarmUnit($params['unit']) , (int)($schedulable['startTime'] / 1000)).'000'; 
     67            $params['rangeEnd'] = $schedulable['endTime']; 
    4768        } 
    4869         
Note: See TracChangeset for help on using the changeset viewer.