From bdb1184a8cb28f1620e42ea7296b11e73ccbf537 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 30 Oct 2003 04:01:33 +0000 Subject: [PATCH] date works on windows as well. r=bryner --- tools/tinderbox/build-seamonkey-util.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 10946330b8e..a30c3f647c3 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -23,7 +23,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num} use File::Find (); use File::Copy; -$::UtilsVersion = '$Revision: 1.247 $ '; +$::UtilsVersion = '$Revision: 1.248 $ '; package TinderUtils; @@ -732,12 +732,9 @@ sub BuildIt { # Try posix call to find timezone. # Don't do this for Darwin, Win32. $timezone = POSIX::strftime("%Z", localtime($start_time)); - } elsif (not ($Settings::OS =~ /^(WIN)/)) { + } else { # Fallback to what `date` says. chomp($timezone = `date "+%Z"`); - } else { - # Guess. - $timezone = "PDT"; # PST ? } print "timezone = $timezone\n";