Skip to content

Conversation

@pavanputti
Copy link
Contributor

  • Added comment indicating where timezone conversion will be implemented
  • This is the initial step for standardizing event time display based on user timezone

Description

Please include the exact bug/functionality description and a summary of the changes/ related issues. Please also include any other relevant motivation and context:
Fixes # (bug list priority high/medium/low x.y.z)
Or Implements # (WBS)

Related PRS (if any):

This frontend PR is related to the #XXX backend PR.
To test this backend PR you need to checkout the #XXX frontend PR.

Main changes explained:

  • Delete file A for removing unused components …
  • Update file B for including new pattern …
  • Create file C for introducing new components …

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to dashboard→ Tasks→ task→…
  6. verify function “A” (feel free to include screenshot here)
  7. verify this new feature works in dark mode

Screenshots or videos of changes:

Note:

Include the information the reviewers need to know.

- Added comment indicating where timezone conversion will be implemented
- This is the initial step for standardizing event time display based on user timezone
@netlify
Copy link

netlify bot commented Dec 27, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 2508408
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/695866c79cfe3f000858cc6e
😎 Deploy Preview https://deploy-preview-4633--highestgoodnetwork-dev.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 project configuration.

@pavanputti pavanputti added the do not review Do not review or look at code without full context label Dec 27, 2025
@pavanputti pavanputti force-pushed the feature/standardize-event-timezone-display branch from eff1ef7 to f67d61e Compare December 27, 2025 07:16
Phase 2 - Setup & Preparation:
- Created timezoneUtils.js file with skeleton functions
- Added placeholder functions: getUserTimezone, convertToUserTimezone, getTimezoneAbbreviation, formatDateTimeWithTimezone
- Added TODO comments explaining what each function will do
- No implementation yet - structure only
Phase 3 improvements:
- Implemented getUserTimezone() function using Intl.DateTimeFormat API
- Added exploration functions for testing date-fns-tz vs moment-timezone approaches
- Added comments in EventCard showing where timezone conversion will be implemented
- Added import comment (commented out) for future use
- Explored conversion options: moment-timezone (already in use) vs date-fns-tz (available)
- No full implementation yet - exploration phase only
Phase 4 improvements:
- Added moment-timezone import for testing conversion approaches
- Enhanced getUserTimezone() with validation and error handling
- Implemented test functions for both moment-timezone and date-fns-tz approaches
- Added bug fixes: null checks, validation, error handling
- Tested timezone detection across browsers (Chrome, Firefox, Safari, Edge)
- Documented testing results: decided to use moment-timezone for consistency
- Fixed issues found during testing: invalid date handling, null checks
- No full implementation yet - testing phase only
- Implemented complete timezone conversion using moment-timezone
- Added formatDateTimeWithTimezone function with timezone abbreviation
- Updated EventCard to use timezone utilities for time display
- Added location placeholder 'Location TBD' for empty locations
- Added error handling for date formatting
- Removed exploration functions from timezoneUtils
- Event times now display in user's local timezone with abbreviation (e.g., '2:00 PM PST')
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2026

- Updated timezoneUtils to use current date for timezone abbreviation (ensures all events show same PST/PDT)
- Fixed CPDashboard to use timezone utilities for consistent time display
- Improved event card alignment for date, time, and location with icons
- Fixed EventCard import path
- All events now show consistent timezone abbreviation across all cards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not review Do not review or look at code without full context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants