Changeset 1463

Show
Ignore:
Timestamp:
12/08/07 00:00:28 (7 months ago)
Author:
Shadowhand
Message:

Updated Forge_Dateselect with proper handling of the current minute, using num::round()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/forge/libraries/Form_Dateselect.php

    r1460 r1463  
    3939        protected function time_array($timestamp) 
    4040        { 
    41                 return array_combine( 
     41                $time = array_combine( 
    4242                        array('month', 'day', 'year', 'hour', 'minute', 'am_pm'),  
    4343                        explode('--', date('n--j--Y--g--i--A', $timestamp))); 
     44 
     45                // Minutes should always be in 5 minute increments 
     46                $time['minute'] = num::round($time['minute'], 5); 
     47 
     48                return $time; 
    4449        } 
    4550