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

fix: properly format local time displayed on user's profile #1282

Merged

Conversation

codewithshariq
Copy link
Contributor

@codewithshariq codewithshariq commented Jun 21, 2023

"fix #1275"

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR fixes the issue related to local time formatting on the user's profile, the local time is properly formatted on the user's profile. If the minutes are less than 10, then a leading zero will be displayed and time will be properly displayed in 12 hours format.

Related Tickets & Documents

Fixes #1275

Mobile & Desktop Screenshots/Recordings

Screenshot 2023-06-22 at 11 00 43 AM

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Jun 21, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit b97e09d
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/64941038a5915c0008cf4442
😎 Deploy Preview https://deploy-preview-1282--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 21, 2023

βœ… Deploy Preview for oss-insights ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit b97e09d
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/64941038b728ca00070b83f5
😎 Deploy Preview https://deploy-preview-1282--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks Passed!

@OgDev-01 OgDev-01 added the needs review PRs that need review from core engineering team label Jun 21, 2023
Copy link
Contributor

@OgDev-01 OgDev-01 left a comment

Choose a reason for hiding this comment

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

Thanks for this @codewithshariq!
LGTM πŸ•

@codewithshariq
Copy link
Contributor Author

codewithshariq commented Jun 21, 2023

@OgDev-01 there is another issue with the time format. The hour's value should not be greater than 11 in the case of "PM". Should I open a new issue to fix that or can I fix it within this PR as an additional improvement?

@OgDev-01
Copy link
Contributor

@OgDev-01 there is another issue with the time format. The hour's value should not be greater than 11 in the case of "PM". Should I open a new issue to fix that or can I fix it within this PR as an additional improvement?

Since it's a tiny change, adding it here won't hurt πŸ˜‡πŸ˜‡

lib/utils/timezones.ts Outdated Show resolved Hide resolved
@brandonroberts brandonroberts changed the title fix(timezone.ts): properly formatted local time displayed on user's profile fix: properly formatted local time displayed on user's profile Jun 21, 2023
@brandonroberts brandonroberts changed the title fix: properly formatted local time displayed on user's profile fix: properly format local time displayed on user's profile Jun 21, 2023
Copy link
Contributor

@NsdHSO NsdHSO left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: ( Nechiforel David-Samuel ) NsdHSO  <37635083+NsdHSO@users.noreply.github.com>
@brandonroberts brandonroberts merged commit 604cc62 into open-sauced:beta Jun 22, 2023
github-actions bot pushed a commit that referenced this pull request Jun 22, 2023
## [1.53.0-beta.3](v1.53.0-beta.2...v1.53.0-beta.3) (2023-06-22)

### πŸ› Bug Fixes

* properly format local time displayed on user's profile ([#1282](#1282)) ([604cc62](604cc62))
@github-actions
Copy link
Contributor

πŸŽ‰ This PR is included in version 1.53.0-beta.3 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Jun 22, 2023
## [1.53.0](v1.52.0...v1.53.0) (2023-06-22)

### πŸ• Features

* handle close highlight dialog ([#1268](#1268)) ([b6a78c7](b6a78c7))

### πŸ› Bug Fixes

* language update - change developer to contributor ([#1274](#1274)) ([7e86ac9](7e86ac9)), closes [#1247](#1247)
* link single highlight dialog contributor info div to contributor profile ([#1279](#1279)) ([67d5a16](67d5a16))
* properly format local time displayed on user's profile ([#1282](#1282)) ([604cc62](604cc62))
* remove failing maintenance actions ([#1271](#1271)) ([bc516c3](bc516c3))
* scatter plot tooltip issue and remove cloudinary rounded image solution ([#1266](#1266)) ([ec6b3d5](ec6b3d5))
@github-actions
Copy link
Contributor

πŸŽ‰ This PR is included in version 1.53.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.53.0-beta.3](open-sauced/app@v1.53.0-beta.2...v1.53.0-beta.3) (2023-06-22)

### πŸ› Bug Fixes

* properly format local time displayed on user's profile ([#1282](open-sauced/app#1282)) ([604cc62](open-sauced/app@604cc62))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.53.0](open-sauced/app@v1.52.0...v1.53.0) (2023-06-22)

### πŸ• Features

* handle close highlight dialog ([#1268](open-sauced/app#1268)) ([b6a78c7](open-sauced/app@b6a78c7))

### πŸ› Bug Fixes

* language update - change developer to contributor ([#1274](open-sauced/app#1274)) ([7e86ac9](open-sauced/app@7e86ac9)), closes [#1247](open-sauced/app#1247)
* link single highlight dialog contributor info div to contributor profile ([#1279](open-sauced/app#1279)) ([67d5a16](open-sauced/app@67d5a16))
* properly format local time displayed on user's profile ([#1282](open-sauced/app#1282)) ([604cc62](open-sauced/app@604cc62))
* remove failing maintenance actions ([#1271](open-sauced/app#1271)) ([bc516c3](open-sauced/app@bc516c3))
* scatter plot tooltip issue and remove cloudinary rounded image solution ([#1266](open-sauced/app#1266)) ([ec6b3d5](open-sauced/app@ec6b3d5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review PRs that need review from core engineering team released on @beta released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: user profile local time minute is not properly formatted
4 participants