Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
04452ccd
Commit
04452ccd
authored
Oct 01, 2015
by
Mike Hibler
Browse files
Lack of /etc/timezone should mean "UTC" and not the default ("America/Denver").
parent
2a8dd2f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/gettimezone.pl
View file @
04452ccd
#!/usr/bin/perl -w
#
# Copyright (c) 2011 University of Utah and the Flux Group.
# Copyright (c) 2011
-2015
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -60,10 +60,10 @@ my %aliases = (
sub
sumfile
($);
# no localtime file
, use default
# no localtime file
means UTC
if
(
!
-
e
"
/etc/localtime
")
{
print
STDERR
"
WARNING: you have no timezone set, default to
$defaulttz
\n
";
print
"
$defaulttz
\n
";
print
STDERR
"
WARNING: you have no timezone set, default to
UTC
\n
";
print
"
UTC
\n
";
exit
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment