Skip to content

Refactor/date utils date fns

Laxman Reddy requested to merge refactor/date-utils-date-fns into develop

Description:

Refactored custom date/time utilities by replacing them with date-fns and date-fns-tz to ensure consistent, timezone-safe handling across the application. Removed manual implementations and hardcoded IST offsets, and introduced standardized utility functions for relative time, formatted timestamps, and media durations. Also fixed related runtime issues caused during refactor.


Type of Change:

  • Bug Fix
  • Feature Development
  • Documentation

Testing:

  • Tested on desktop
  • Tested on mobile
  • Tested in different browsers

Screenshots (if applicable):

  • Peer Review page showing relative timestamps
  • Image Annotation modal showing IST formatted time
  • Profile page heatmap rendering correctly

Video Demo

Add a link to the demo of the PR

If you have used AI create this PR, please also record video of yourself explaining the changes.

Link to code walkthrough


Checklist:

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • TypeScript types are correct

Merge request reports

Loading