File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
client/src/components/notifications Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323 - Enhanced logging for better troubleshooting of time filter issues
2424- Fixed notification history timestamps to match the timezone shown on the dashboard:
2525 - Updated date formatting in NotificationHistory component to use consistent formatting options
26+ - Added explicit timezone display to make the local timezone clear to users
2627 - Ensured consistent date display format across the application
2728
2829### Improved
Original file line number Diff line number Diff line change @@ -47,12 +47,16 @@ const NotificationHistory = () => {
4747
4848 // Helper function to format date
4949 const formatDate = ( dateString ) => {
50+ // Parse the UTC date string and convert to local timezone
5051 const date = new Date ( dateString ) ;
52+
53+ // Format the date in the local timezone
5154 return date . toLocaleString ( [ ] , {
5255 month : 'short' ,
5356 day : 'numeric' ,
5457 hour : '2-digit' ,
55- minute : '2-digit'
58+ minute : '2-digit' ,
59+ timeZoneName : 'short' // Add timezone name to make it clear
5660 } ) ;
5761 } ;
5862
You can’t perform that action at this time.
0 commit comments