Skip to content

Commit 7576ece

Browse files
committed
fix: user subscription client time converted from utc to local
1 parent 5471a20 commit 7576ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/src/components/dialogs/UserSubscriptionClientsModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ export const UserSubscriptionClientsModal: FC<UserSubscriptionClientsModalProps>
269269
let timestamp: number | null = null
270270
if (update.created_at) {
271271
if (typeof update.created_at === 'string') {
272-
const date = new Date(update.created_at)
273-
timestamp = Math.floor(date.getTime() / 1000)
272+
// Use dateUtils to properly convert ISO string to timestamp
273+
timestamp = dateUtils.toDayjs(update.created_at).unix()
274274
} else if (typeof update.created_at === 'number') {
275275
timestamp = update.created_at
276276
}

0 commit comments

Comments
 (0)