mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat!: json format timezone is now outputted in +0000 format.
This commit is contained in:
parent
2ce73fb3f2
commit
f6dc78f587
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ def create_json_string(ol, description='', indent=1):
|
|||
d['program'] = 'pyerrors %s' % (pyerrorsversion.__version__)
|
||||
d['version'] = '0.1'
|
||||
d['who'] = getpass.getuser()
|
||||
d['date'] = datetime.datetime.now().astimezone().strftime('%Y-%m-%d %H:%M:%S %Z')
|
||||
d['date'] = datetime.datetime.now().astimezone().strftime('%Y-%m-%d %H:%M:%S %z')
|
||||
d['host'] = socket.gethostname() + ', ' + platform.platform()
|
||||
|
||||
if description:
|
||||
|
|
Loading…
Add table
Reference in a new issue