-
Notifications
You must be signed in to change notification settings - Fork 45
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
Standardize dates and sort icons #2884
Conversation
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.
Nice work @taylordowns2000 👏🏽
@@ -344,7 +344,7 @@ defmodule Lightning.Accounts.UserNotifier do | |||
body = """ | |||
Hi #{user.first_name}, | |||
|
|||
Here's your #{Atom.to_string(digest)} project digest for "#{project.name}", covering activity from #{start_date |> Calendar.strftime("%a %B %d %Y at %H:%M %Z")} to #{end_date |> Calendar.strftime("%a %B %d %Y at %H:%M %Z")}. | |||
Here's your #{Atom.to_string(digest)} project digest for "#{project.name}", covering activity from #{start_date |> Lightning.Helpers.format_date_long()} to #{end_date |> Lightning.Helpers.format_date_long()}. |
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.
Nice !
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2884 +/- ##
=======================================
Coverage 91.44% 91.44%
=======================================
Files 343 343
Lines 12351 12355 +4
=======================================
+ Hits 11294 11298 +4
Misses 1057 1057 ☔ View full report in Codecov by Sentry. |
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.
Thanks Taylor. Looks good to me
Description
This PR fixes #2423 (https://openfn.slack.com/archives/C031G8JAU/p1724414804213229) but also standardizes our date formats: YYYY-MM-DD is better than DD/MM/YYYY because we have a very international (including Americans) and it removes ambiguity between mm/dd and dd/mm.
Finally, it adds this: https://community.openfn.org/t/add-project-name-on-failure-alert-emails/809
Validation steps
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy
Pre-submission checklist
:owner
,:admin
,:editor
,:viewer
)