Commit 0c4baf2bc5e1f353c33d723485a812e683d6bb2a
Merge pull request #16 from selurvedu/isoformat
Re-add provision of date/time in ISO 8601 format
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -24,7 +24,7 @@ from .initial_data import ( | @@ -24,7 +24,7 @@ from .initial_data import ( | ||
24 | TZ = timezone(os.environ['TZ'] if 'TZ' in os.environ else 'Europe/Kiev') | 24 | TZ = timezone(os.environ['TZ'] if 'TZ' in os.environ else 'Europe/Kiev') |
25 | 25 | ||
26 | def get_now(): | 26 | def get_now(): |
27 | - return datetime.now(TZ) | 27 | + return datetime.now(TZ).isoformat() |
28 | 28 | ||
29 | def get_file_contents(path): | 29 | def get_file_contents(path): |
30 | with open(path, 'r') as f: | 30 | with open(path, 'r') as f: |
Please
register
or
login
to post a comment