mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
midday → noon
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ def get_time_value_and_label(future_time):
|
||||
def get_human_time(time):
|
||||
return {
|
||||
'0': 'midnight',
|
||||
'12': 'midday'
|
||||
'12': 'noon'
|
||||
}.get(
|
||||
time.strftime('%-H'),
|
||||
time.strftime('%-I%p').lower()
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@ def test_form_contains_next_24h(notify_admin):
|
||||
|
||||
# Friday
|
||||
assert choices[0] == ('', 'Now')
|
||||
assert choices[1] == ('2016-01-01T17:00:00', 'Today at midday')
|
||||
assert choices[1] == ('2016-01-01T17:00:00', 'Today at noon')
|
||||
assert choices[13] == ('2016-01-02T05:00:00', 'Today at midnight')
|
||||
|
||||
# Saturday
|
||||
|
||||
@@ -42,7 +42,7 @@ describe('RadioSelect', () => {
|
||||
let label = hour;
|
||||
|
||||
if (hour === 12) {
|
||||
return 'midday';
|
||||
return 'noon';
|
||||
}
|
||||
|
||||
if (hour === 24) {
|
||||
|
||||
Reference in New Issue
Block a user