Explorar o código

Merge pull request #540 from ThomasWaldmann/isotimestamp-with-wkday

add abbreviated weekday to timestamp format, fixes #496
TW %!s(int64=9) %!d(string=hai) anos
pai
achega
0f02513410
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -462,7 +462,7 @@ def dir_is_tagged(path, exclude_caches, exclude_if_present):
 def format_time(t):
     """use ISO-8601 date and time format
     """
-    return t.strftime('%Y-%m-%d %H:%M:%S')
+    return t.strftime('%a, %Y-%m-%d %H:%M:%S')
 
 
 def format_timedelta(td):