Reverted timezone related change to check-copyright, which is not a django script.
- Legacy-Id: 18789
This commit is contained in:
parent
9a881ccf45
commit
65c93ddc6d
|
@ -162,7 +162,7 @@ def get_first_commit(path):
|
|||
else:
|
||||
pass
|
||||
except OSError:
|
||||
rev, who, when = None, None, timezone.now()
|
||||
rev, who, when = None, None, datetime.datetime.now()
|
||||
return { path: { 'rev': rev, 'who': who, 'date': when.strftime('%Y-%m-%d %H:%M:%S'), }, }
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue