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

Aa storm feature/use local time #1415

Merged
merged 8 commits into from
Jan 21, 2025

Conversation

Max-Z80
Copy link
Collaborator

@Max-Z80 Max-Z80 commented Jan 17, 2025

Description

  • display landfall detail popup using mozambic time
  • display date popups using mozambic time
  • display timeline popup in UTC
  • display panel report time in UTC
Screenshot 2025-01-20 at 7 12 06 PM Screenshot 2025-01-20 at 7 11 58 PM Screenshot 2025-01-20 at 7 11 55 PM

How to test the feature:

  • [ ]
  • [ ]

Checklist - did you ...

Test your changes with

  • REACT_APP_COUNTRY=rbd yarn start
  • REACT_APP_COUNTRY=cambodia yarn start
  • REACT_APP_COUNTRY=mozambique yarn start
  • Add / update necessary tests?
  • Add / update outdated documentation?

Screenshot/video of feature:

@Max-Z80 Max-Z80 changed the base branch from master to feature/add-new-AA-storm January 17, 2025 21:25
@Max-Z80 Max-Z80 force-pushed the aa-storm-feature/use-local-time branch from 4c3bc28 to 6557c99 Compare January 20, 2025 12:20
Copy link

github-actions bot commented Jan 20, 2025

Build succeeded and deployed at https://prism-1415.surge.sh
(hash 397f99f deployed at 2025-01-21T23:17:14)

* When additional countries will need to access this module, this function will have to be revisited
*/

function formatInLocalTime(date: Date, fmt: string): string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could pass a timezone parameter with default value like this to be more generic even if we just need the mozambic time for now :

export function formatInLocalTime(date: Date, fmt: string, timeZone: string = 'Africa/Blantyre'): string {
  const dateInLocalTime = utcToZonedTime(date, timeZone);

@wadhwamatic wadhwamatic self-requested a review January 21, 2025 22:58
Copy link
Member

@wadhwamatic wadhwamatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well, thanks!

@ericboucher ericboucher merged commit 9cfc133 into feature/add-new-AA-storm Jan 21, 2025
6 checks passed
@ericboucher ericboucher deleted the aa-storm-feature/use-local-time branch January 21, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants