chiark / gitweb /
Command line interface now takes more human-friendly timestamps. This
[disorder] / tests / schedule.py
index ae6623ca85037a186bc0ae03b8774c24348f8750..a3feaa87683fa06d9562bc79290e7496faeedf92 100755 (executable)
@@ -82,7 +82,8 @@ def test():
                    "--config", disorder._configfile,
                    "--no-per-user-config",
                    "schedule-play",
-                   str(now + 4),
+                   time.strftime("%Y-%m-%d %H:%M:%S",
+                                 time.localtime(now + 4)),
                    "normal",
                    track])
     print " disorder schedule-list output:"
@@ -110,7 +111,8 @@ def test():
                    "--config", disorder._configfile,
                    "--no-per-user-config",
                    "schedule-set-global",
-                   str(now + 4),
+                   time.strftime("%Y-%m-%d %H:%M:%S",
+                                 time.localtime(now + 4)),
                    "normal",
                    "random-play",
                    "yes"])