You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone says set time 3:00, they probably don't mean 3am.
I'd suggest accepting times like (\d+)(:\d\d)?\s*(am|pm)?, case insensitive. If the meridian marker (am/pm) is missing and the hour is less than, say, 8? then treat it as after noon.
If someone wants an early morning event, they can explicitly specify "AM". If they wrote "8:00" and expected it to be in the evening, they can use "8pm" to get what they wanted.
The text was updated successfully, but these errors were encountered:
If someone says
set time 3:00
, they probably don't mean 3am.I'd suggest accepting times like
(\d+)(:\d\d)?\s*(am|pm)?
, case insensitive. If the meridian marker (am/pm) is missing and the hour is less than, say, 8? then treat it as after noon.If someone wants an early morning event, they can explicitly specify "AM". If they wrote "8:00" and expected it to be in the evening, they can use "8pm" to get what they wanted.
The text was updated successfully, but these errors were encountered: