mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce helper for getting current date time in UTC
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
23f7d438f1
commit
a2c94d09dd
7
src/common/utils/date/get-current-date-time.ts
Normal file
7
src/common/utils/date/get-current-date-time.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import moment from "moment";
|
||||
|
||||
export const getCurrentDateTime = () => moment().utc().format();
|
||||
Loading…
Reference in New Issue
Block a user