mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Use time2str instead of ctime; ctime seems to return different things on different systems.
This commit is contained in:
parent
1bd88542ae
commit
427ffec39f
@ -29,7 +29,7 @@
|
||||
##############################################################################
|
||||
|
||||
require 'timelocal.pl'; # timestamps
|
||||
require 'ctime.pl'; # human-readable dates
|
||||
use Date::Format; # human-readable dates
|
||||
|
||||
$debug = 0;
|
||||
|
||||
@ -283,11 +283,11 @@ sub parse_rcs_tree {
|
||||
$timestamp{$revision} = &timegm(@date_fields);
|
||||
|
||||
# Compute date string; Format it the way I like.
|
||||
($mon, $day, $hhmm, $year)
|
||||
= &ctime($timestamp{$revision})
|
||||
=~ /... (...) (..) (..:..):.. \S*(....)/;
|
||||
|
||||
($mon, $day, $hhmm, $year) = split(/#/,
|
||||
time2str("%b#%e#%H:%M#%Y",
|
||||
$timestamp{$revision}));
|
||||
$revision_ctime{$revision} = "$day $mon $year $hhmm";
|
||||
# $revision_ctime{$revision} = &ctime($timestamp{$revision});
|
||||
|
||||
# Save age
|
||||
$revision_age{$revision} =
|
||||
|
Loading…
Reference in New Issue
Block a user