-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change all internal APIs to use timezone-aware datetimes (UTC).
- Loading branch information
Showing
27 changed files
with
161 additions
and
216 deletions.
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
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 |
---|---|---|
|
@@ -20,11 +20,11 @@ | |
EntryData( | ||
feed_url=feed.url, | ||
id='2', | ||
updated=datetime.datetime(2020, 1, 4, 0, 0), | ||
updated=datetime.datetime(2020, 1, 4, 0, 0, tzinfo=datetime.timezone.utc), | ||
title="Title", | ||
link="https://example.org/second-item", | ||
author="mailto:[email protected]", | ||
published=datetime.datetime(2020, 1, 2, 21, 0), | ||
published=datetime.datetime(2020, 1, 2, 21, 0, tzinfo=datetime.timezone.utc), | ||
summary="A summary", | ||
content=( | ||
Content( | ||
|
@@ -56,7 +56,7 @@ | |
title=None, | ||
link='https://example.org/initial-post', | ||
author='Jane', | ||
published=datetime.datetime(2020, 1, 2, 12, 0), | ||
published=datetime.datetime(2020, 1, 2, 12, 0, tzinfo=datetime.timezone.utc), | ||
summary=None, | ||
content=( | ||
Content(value='<p>Hello, world!</p>', type='text/html', language='en'), | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
feed = FeedData( | ||
url=f'{url_base}full.rss', | ||
updated=datetime.datetime(2010, 9, 6, 0, 1), | ||
updated=datetime.datetime(2010, 9, 6, 0, 1, tzinfo=datetime.timezone.utc), | ||
title='RSS Title', | ||
link='http://www.example.com/main.html', | ||
author='Example editor ([email protected])', | ||
|
@@ -24,7 +24,7 @@ | |
title='Example entry', | ||
link='http://www.example.com/blog/post/1', | ||
author='Example editor', | ||
published=datetime.datetime(2009, 9, 6, 16, 20), | ||
published=datetime.datetime(2009, 9, 6, 16, 20, tzinfo=datetime.timezone.utc), | ||
summary='Here is some text containing an interesting description.', | ||
content=( | ||
# the text/plain type comes from feedparser | ||
|
@@ -41,7 +41,7 @@ | |
feed_url=feed.url, | ||
id='00000000-1655-4c27-aeee-00000000', | ||
updated=None, | ||
published=datetime.datetime(2009, 9, 6, 0, 0, 0), | ||
published=datetime.datetime(2009, 9, 6, 0, 0, 0, tzinfo=datetime.timezone.utc), | ||
title='Example entry, again', | ||
), | ||
] |
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.