forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The document expiration mail displays the date of the upcoming document expiration, but different timezones makes that date ambituous. Instead, clearly show that as a timestamp in UTC. Fixes ietf-tools#1825
- Loading branch information
Showing
3 changed files
with
12 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -711,6 +711,7 @@ def test_warn_expirable_drafts(self): | |
self.assertTrue('draft-ietf-mars-test@' in outbox[-1]['To']) # Gets the authors | ||
self.assertTrue('[email protected]' in outbox[-1]['Cc']) | ||
self.assertTrue('aread@' in outbox[-1]['Cc']) | ||
self.assertIn('UTC' , get_payload_text(outbox[-1])) | ||
|
||
# hack into expirable state to expire in 10 hours | ||
draft.expires = timezone.now() + datetime.timedelta(hours=10) | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% load ietf_filters %}{% autoescape off %}The following Internet-Draft will expire soon: | ||
{% load ietf_filters tz %}{% autoescape off %}The following Internet-Draft will expire soon: | ||
|
||
Name: {{ doc.name|clean_whitespace }} | ||
Title: {{ doc.title}} | ||
State: {{ state }} | ||
Expires: {{ expiration }} (in {{ expiration|timeuntil }}) | ||
Expires: {{ expiration|utc }} (in {{ expiration|timeuntil }}) | ||
{% endautoescape %} |