midday → noon

This commit is contained in:
stvnrlly
2022-11-28 16:57:49 -05:00
parent 03dad94af0
commit c8486ea015
7 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -42,7 +42,7 @@ describe('RadioSelect', () => {
let label = hour;
if (hour === 12) {
return 'midday';
return 'noon';
}
if (hour === 24) {