Changeset 2118

Show
Ignore:
Timestamp:
04/26/08 16:19:13 (3 months ago)
Author:
bchoate
Message:

Fix for some warnings when ts2epoch is called without a timestamp. BugId:79517

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-36/lib/MT/Util.pm

    r2086 r2118  
    111111sub ts2epoch { 
    112112    my ($blog, $ts) = @_; 
     113    return unless $ts; 
    113114    my ($yr, $mo, $dy, $hr, $mn, $sc) = unpack('A4A2A2A2A2A2', $ts); 
    114115    my $epoch = Time::Local::timegm_nocheck($sc, $mn, $hr, $dy, $mo-1, $yr);