summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunammx <unammx>2001-03-08 23:17:54 +0000
committerunammx <unammx>2001-03-08 23:17:54 +0000
commitba04cce4d8258db1f5e420554378bd61d79bdbe9 (patch)
treeb880d0c2967bfda1e71837c5090fe565c2d95f00
parent160fa68908937db37764023706008407c80eaa6a (diff)
* time-conf.in (time_get_local_time): bad order in scalar
assignment. fixed.
-rw-r--r--ChangeLog2
-rwxr-xr-xtime-conf.in4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 720e7fe..cd95c54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* time-conf.in (time_set_local_time, time_set_rh62_zone,
time_rh62_service_set_status, conf_set): replace functions.
Not tested yet.
+ * time-conf.in (time_get_local_time): bad order in scalar
+ assignment. fixed.
2001-03-08 Hans Petter Jansson <hpj@ximian.com>
diff --git a/time-conf.in b/time-conf.in
index f93e937..176c8be 100755
--- a/time-conf.in
+++ b/time-conf.in
@@ -141,7 +141,7 @@ sub xml_parse_local_time
{
if ($$tree[0] eq "year") { $$hash{"year"} = &xst_xml_get_word($$tree[1]); }
elsif ($$tree[0] eq "month") { $$hash{"month"} = &xst_xml_get_word($$tree[1]); }
- elsif ($$tree[0] eq "monthday") { $$hash{"mday"} = &xst_xml_get_word($$tree[1]); }
+ elsif ($$tree[0] eq "monthday") { $$hash{"monthday"} = &xst_xml_get_word($$tree[1]); }
elsif ($$tree[0] eq "hour") { $$hash{"hour"} = &xst_xml_get_word($$tree[1]); }
elsif ($$tree[0] eq "minute") { $$hash{"minute"} = &xst_xml_get_word($$tree[1]); }
elsif ($$tree[0] eq "second") { $$hash{"second"} = &xst_xml_get_word($$tree[1]); }
@@ -249,7 +249,7 @@ sub time_get_local_time
{
my %h, $trash;
- ($h{"year"}, $h{"month"}, $h{"monthday"}, $h{"hour"}, $h{"minute"}, $h{"second"},
+ ($h{"second"}, $h{"minute"}, $h{"hour"}, $h{"monthday"}, $h{"month"}, $h{"year"},
$trash, $trash, $trash) = localtime (time);
return \%h;