Ignore:
Timestamp:
07/10/08 14:40:20 (15 years ago)
Author:
ramonb
Message:

job_monarch/jobstore.php:

  • times and dates are now pretty and make sense

job_monarch/js/jobgrid.js:

  • changed column size

job_monarch/js/mainscript.js:

  • removed bogus example

job_monarch/overview.php,
job_monarch/libtoga.php:

  • moved time function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/overview.php

    r532 r534  
    105105}
    106106
    107 function timeToEpoch( $time )
    108 {
    109         $time_fields    = explode( ':', $time );
    110 
    111         if( count( $time_fields ) == 3 )
    112         {
    113                 $hours          = $time_fields[0];
    114                 $minutes        = $time_fields[1];
    115                 $seconds        = $time_fields[2];
    116 
    117         }
    118         else if( count( $time_fields ) == 2 )
    119         {
    120                 $hours          = 0;
    121                 $minutes        = $time_fields[0];
    122                 $seconds        = $time_fields[1];
    123 
    124         }
    125         else if( count( $time_fields ) == 1 )
    126         {
    127                 $hours          = 0;
    128                 $minutes        = 0;
    129                 $seconds        = $time_fields[0];
    130         }
    131 
    132         $myepoch        = intval( $seconds + (intval( $minutes * 60 )) + (intval( $hours * 3600 )) );
    133 
    134         return $myepoch;
    135 }
    136 
    137107function colorRed( $color )
    138108{
Note: See TracChangeset for help on using the changeset viewer.