Changeset 282

Show
Ignore:
Timestamp:
04/07/08 18:13:19 (8 months ago)
Author:
renato
Message:

calendar: Correcting bug when checking start/end hour of an event.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • calendar/trunk/actions.php

    r218 r282  
    378378 
    379379    if ($calendar_input->start_amorpm == "pm" )  
    380         $start_hour = $calendar_input->start_hour + 12; 
     380        $start_hour = ($calendar_input->start_hour % 12) + 12; 
    381381    else  
    382382        $start_hour = $calendar_input->start_hour; 
    383383 
    384384    if ($calendar_input->end_amorpm == "pm" )  
    385         $end_hour = $calendar_input->end_hour + 12; 
     385        $end_hour = ($calendar_input->end_hour % 12) + 12; 
    386386    else  
    387387        $end_hour = $calendar_input->end_hour; 
  • calendar/trunk/plugin.info

    r218 r282  
    1 Maintainer: Renato Mendes Coutinho <renato.coutinho@gmail.com> 
     1Maintainer: Renato Mendes Coutinho [renato] <renato.coutinho@gmail.com> 
    22Title: Calendar 
    33Package: calendar