-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-339]: Added support for lower case meridiems(AM/PM) #438
base: master
Are you sure you want to change the base?
Conversation
calendar/engine/daily_summary.go
Outdated
@@ -291,3 +292,17 @@ func getTodayHoursForTimezone(now time.Time, timezone string) (start, end time.T | |||
end = start.Add(24 * time.Hour) | |||
return start, end | |||
} | |||
|
|||
func convertToUpperCaseTime(timeStr string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this to reflect that it is only changing the case for the meridiems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done @wiggin77 .
Updated it to convertMeridiemToUpperCase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Summary
Added support for lowercase meridiems(AM/PM)
Ticket Link
Fixes #339
What to test
/mscalendar summary time 9:00AM
and/mscalendar summary time 9:00am