WhatsNew: Save build creation time, use as displayed date
This commit is contained in:
parent
240585ef94
commit
29a3a2ac58
6 changed files with 9 additions and 3 deletions
|
@ -26,7 +26,7 @@ export const WhatsNew = ({ i18n }: PropsType): JSX.Element => {
|
|||
|
||||
const viewReleaseNotes = () => {
|
||||
setReleaseNotes({
|
||||
date: new Date('09/02/2021'),
|
||||
date: new Date(window.getBuildCreation?.() || Date.now()),
|
||||
version: window.getVersion(),
|
||||
features: ['WhatsNew__v5.17--1', 'WhatsNew__v5.17--2'],
|
||||
});
|
||||
|
|
1
ts/window.d.ts
vendored
1
ts/window.d.ts
vendored
|
@ -199,6 +199,7 @@ declare global {
|
|||
getAccountManager: () => AccountManager;
|
||||
getBuiltInImages: () => Promise<Array<string>>;
|
||||
getConversations: () => ConversationModelCollectionType;
|
||||
getBuildCreation: () => number;
|
||||
getEnvironment: typeof getEnvironment;
|
||||
getExpiration: () => string;
|
||||
getGuid: () => string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue