forked from github/plane
[WEB-761] fix: Time zone date misalignment (#3986)
* fix date time misalignment * fix failing build * fix gantt chart view position fix * comments for getDate method * remove new Date() where not required * changes from my self review
This commit is contained in:
@@ -91,7 +91,7 @@ const UserNotificationContextProvider: React.FC<{
|
||||
|
||||
const [state, dispatch] = useReducer(reducer, initialState);
|
||||
|
||||
const { selectedTab, snoozed, archived, readNotification, selectedNotificationForSnooze } = state;
|
||||
const { selectedTab, snoozed, archived, readNotification } = state;
|
||||
|
||||
const params = {
|
||||
type: snoozed || archived || readNotification ? undefined : selectedTab,
|
||||
@@ -207,7 +207,7 @@ const UserNotificationContextProvider: React.FC<{
|
||||
(previousNotifications: any) =>
|
||||
previousNotifications?.map((notification: any) =>
|
||||
notification.id === notificationId
|
||||
? { ...notification, snoozed_till: isSnoozed ? null : new Date(dateTime!) }
|
||||
? { ...notification, snoozed_till: isSnoozed ? null : dateTime }
|
||||
: notification
|
||||
) || [],
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user