[system-tools-backends-clone] Fix date setting



commit 25f00b6ea6854602d988f2d387234ee370bf58e8
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Fri Nov 6 00:26:00 2009 +0100

    Fix date setting
    
    Another wrong command was preventing modifications from being applied.

 Time/TimeDate.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Time/TimeDate.pm b/Time/TimeDate.pm
index f5c3757..afcd309 100644
--- a/Time/TimeDate.pm
+++ b/Time/TimeDate.pm
@@ -51,10 +51,10 @@ sub change_timedate
     "SunOS"   => "date -u %02d%02d%02d%02d%04d.%02d",
   };
 
-  @command = ($$system_table {$Utils::Backend::tool{"system"}},
-              $$time{"month"} + 1, $$time{"monthday"},
-              $$time{"hour"}, $$time{"minute"},
-              $$time{"year"}, $$time{"second"});
+  @command = split (/ /, sprintf ($$system_table {$Utils::Backend::tool{"system"}},
+                                  $$time{"month"} + 1, $$time{"monthday"},
+                                  $$time{"hour"}, $$time{"minute"},
+                                  $$time{"year"}, $$time{"second"}));
 
   &Utils::Report::do_report ("time_localtime_set", @command);
   return &Utils::File::run (@command);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]