Skip to content
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

Improve admin DateTimePicker to something safer to use #704

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Conversation

DeeTheDev
Copy link
Collaborator

Fixes #699

DateTimePicker values were formatted to the current date-time and was also leaving in the seconds e.g 12:25:44. Admin never had control over seconds and this caused issues e.g. multiple unexpected subsidy payment triggers active.

Since we only care about the hour and minute right now and we want to avoid adding a 'seconds' field to the DateTImePicker, instead we re-created a safe reusable-component that can format time correctly, specially truncating seconds to 0.

@DeeTheDev DeeTheDev added bug Something isn't working admin Admin site changes labels Sep 11, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.96%. Comparing base (573796f) to head (b09a211).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #704   +/-   ##
=======================================
  Coverage   97.95%   97.96%           
=======================================
  Files         448      448           
  Lines       20493    20493           
=======================================
+ Hits        20074    20075    +1     
+ Misses        419      418    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rgalanakis rgalanakis merged commit 2890c0f into main Sep 11, 2024
5 checks passed
@rgalanakis rgalanakis deleted the trunc-time branch September 11, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Admin site changes bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add seconds field for payment triggers in admin
2 participants