Skip to content

Commit ae80a4e

Browse files
committed
Fix notification history timestamps to match dashboard timezone format for v1.9.1
1 parent abc0f56 commit ae80a4e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Added data sampling for multi-day views to get a more representative sample across the full time range
2222
- Increased record limit for multi-day views to provide better data coverage
2323
- Enhanced logging for better troubleshooting of time filter issues
24+
- Fixed notification history timestamps to match the timezone shown on the dashboard:
25+
- Updated date formatting in NotificationHistory component to use consistent formatting options
26+
- Ensured consistent date display format across the application
2427

2528
### Improved
2629
- Simplified battery history implementation:

client/src/components/notifications/NotificationHistory.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ const NotificationHistory = () => {
4848
// Helper function to format date
4949
const formatDate = (dateString) => {
5050
const date = new Date(dateString);
51-
return date.toLocaleString();
51+
return date.toLocaleString([], {
52+
month: 'short',
53+
day: 'numeric',
54+
hour: '2-digit',
55+
minute: '2-digit'
56+
});
5257
};
5358

5459
if (loading) {

0 commit comments

Comments
 (0)