We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56c42c commit 67beb3cCopy full SHA for 67beb3c
app/src/store/models/session.ts
@@ -66,7 +66,10 @@ export default class Session {
66
67
/** The date this session will expire as formatted string */
68
get expiryLabel() {
69
- return this.expiry.getTime() === MAX_DATE.getTime()
+ // consider any expiry past the year 9000 to be never. This
70
+ // factors in expiry values set in different time zones
71
+ const minDate = new Date(MAX_DATE.getFullYear() - 999, 0, 1);
72
+ return this.expiry.getTime() > minDate.getTime()
73
? 'Never'
74
: formatDate(this.expiry, 'MMM d, yyyy h:mm a');
75
}
0 commit comments