Changeset 246


Ignore:
Timestamp:
04/11/06 11:46:19 (16 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/conf.php:

  • added DATETIME_FORMAT

web/addons/job_monarch/libtoga.php:

  • added makeDate()

web/addons/job_monarch/search.php,
web/addons/job_monarch/overview.php:

  • disable local makeDate, use from libtoga

web/addons/job_monarch/search.php

Location:
trunk/web/addons/job_monarch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/conf.php

    r242 r246  
    1515//
    1616$GANGLIA_PATH = "/var/www/ganglia";
     17
     18// Format of how to display a date and time in human readable format
     19//
     20$DATETIME_FORMAT = "%a %d %b %Y %H:%M:%S";
    1721
    1822// Max size of small clusterimage
  • trunk/web/addons/job_monarch/libtoga.php

    r231 r246  
    2525
    2626
    27 // If php is compiled without globals
    28 //
    29 //if ( !empty( $_GET ) ) {
    30 //        extract( $_GET );
    31 //}
    32 
    3327class HTTPVariables {
    3428
     
    115109//
    116110global $metrics, $hosts_up;
     111
     112global $DATETIME_FORMAT;
     113
     114function makeDate( $time ) {
     115        global $DATETIME_FORMAT;
     116        return strftime( $DATETIME_FORMAT, $time );
     117}
    117118
    118119class TarchDbase {
  • trunk/web/addons/job_monarch/overview.php

    r245 r246  
    168168}
    169169
    170 function makeDate( $time ) {
    171         return strftime( "%a %d %b %Y %H:%M:%S", $time );
    172 }
     170//function makeDate( $time ) {
     171//      return strftime( "%a %d %b %Y %H:%M:%S", $time );
     172//}
    173173
    174174function colorRed( $color ) {
  • trunk/web/addons/job_monarch/search.php

    r237 r246  
    154154}
    155155
    156 function makeDate( $time ) {
    157         return strftime( "%a %d %b %Y %H:%M:%S", $time );
    158 }
     156//function makeDate( $time ) {
     157//        return strftime( "%a %d %b %Y %H:%M:%S", $time );
     158//}
    159159
    160160function datetimeToEpoch( $datetime ) {
Note: See TracChangeset for help on using the changeset viewer.