Commit 0e058b0e759f8d1f08b42fb660852ab277b7f9b3
1 parent
c432f57f
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