-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: ♻️ adding UTC timezone to the project #3912
Closed
matusdrobuliak66
wants to merge
21
commits into
ITISFoundation:master
from
matusdrobuliak66:maintenance/propagating-UTC-timezone-everywhere
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a390713
adding UTC timezone to the project
matusdrobuliak66 422dd6c
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 be56e2c
correction of services/api-server datetime UTC timezone
matusdrobuliak66 87b8241
Merge branch 'maintenance/propagating-UTC-timezone-everywhere' of git…
matusdrobuliak66 05562ab
correction of datetime UTC timezone
matusdrobuliak66 f8413fc
correction of datetime UTC timezone
matusdrobuliak66 588f9c3
correction of datetime UTC timezone
matusdrobuliak66 f4cf1eb
correction of datetime UTC timezone
matusdrobuliak66 0b5ebb5
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 47c2fd3
correction of datetime UTC timezone
matusdrobuliak66 a0c28cc
Merge branch 'maintenance/propagating-UTC-timezone-everywhere' of git…
matusdrobuliak66 cd85bc3
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 7024146
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 9035e95
making working with timezone.utc consistent
matusdrobuliak66 9bce164
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 fddd137
correction of failing autoscaling unit tests
matusdrobuliak66 c4c05e6
Revert "correction of failing autoscaling unit tests"
matusdrobuliak66 a4032a8
Revert "Merge branch 'master' into maintenance/propagating-UTC-timezo…
matusdrobuliak66 ae251e6
Revert "making working with timezone.utc consistent"
matusdrobuliak66 77c0f6c
Merge remote-tracking branch 'upstream/master'
matusdrobuliak66 1da531d
Merge branch 'master' into maintenance/propagating-UTC-timezone-every…
matusdrobuliak66 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
import logging | ||
import sys | ||
from contextlib import contextmanager | ||
from datetime import datetime | ||
from datetime import datetime, timezone | ||
from pathlib import Path | ||
from string import ascii_uppercase | ||
from typing import Optional | ||
|
@@ -89,7 +89,7 @@ def main(mock_codes, *, trial_account_days: Optional[int] = None, uid: int = 1): | |
with _open(file_path) as fh: | ||
print( | ||
"<!-- Generated by {} on {} -->".format( | ||
current_path.name, datetime.utcnow() | ||
current_path.name, datetime.now(timezone.utc).replace(tzinfo=None) | ||
), | ||
file=fh, | ||
) | ||
|
@@ -133,7 +133,11 @@ def main(mock_codes, *, trial_account_days: Optional[int] = None, uid: int = 1): | |
) | ||
print('""issuer"" : ""[email protected]"" ,', file=fh) | ||
print(f'""trial_account_days"" : ""{trial_account_days}""', file=fh) | ||
print('}",%s' % datetime.now().isoformat(sep=" "), file=fh) | ||
print( | ||
'}",%s' | ||
% datetime.now(timezone.utc).replace(tzinfo=None).isoformat(sep=" "), | ||
file=fh, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this done automatically or you had to change manually?