Show
Ignore:
Timestamp:
04/15/08 07:12:39 (20 months ago)
Author:
fumiakiy
Message:

Added timestamp to log metadata when either periodic tasks finished, or TheSchwartz published or sync'ed files. BugId:66799

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/lib/MT/Util.pm

    r1873 r1912  
    2626                 epoch2ts ts2epoch escape_unicode unescape_unicode 
    2727                 sax_parser trim ltrim rtrim asset_cleanup caturl multi_iter 
    28                  weaken ); 
     28                 weaken log_time ); 
    2929 
    3030{ 
     
    19371937} 
    19381938 
     1939sub log_time { 
     1940    return format_ts( 
     1941        '[%Y-%m-%d %H:%M:%S]', 
     1942        epoch2ts(undef, time), 
     1943        undef, 
     1944        MT->config->DefaultLanguage, 
     1945        0 
     1946    ); 
     1947} 
     1948 
    19391949## FIXME 
    19401950# This method is to supplement CGI.pm's lack of read method. 
     
    21252135Content will be sanitized based on pre-defined rules. 
    21262136 
     2137=head2 log_time 
     2138 
     2139Returns the current server time in log specific format. 
     2140 
    21272141=head1 AUTHOR & COPYRIGHTS 
    21282142