File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import {
32
32
ZERO_TIME_STRING ,
33
33
TOAST_ACCESS_DENIED ,
34
34
UNCHANGED_ARRAY_ELEMENT_SYMBOL ,
35
+ DATE_TIME_FORMATS ,
35
36
} from './Constants'
36
37
import { ServerErrors } from './ServerError'
37
38
import { AsyncOptions , AsyncState , UseSearchString } from './Types'
@@ -233,6 +234,9 @@ export function handleUTCTime(ts: string, isRelativeTime = false) {
233
234
return timestamp
234
235
}
235
236
237
+ export const getFormattedUTCTimeForExport = ( timeToConvert : string , fallback = '-' ) =>
238
+ timeToConvert ? `${ moment ( timeToConvert ) . utc ( ) . format ( DATE_TIME_FORMATS . TWELVE_HOURS_EXPORT_FORMAT ) } (UTC)` : '-'
239
+
236
240
export function useSearchString ( ) : UseSearchString {
237
241
const location = useLocation ( )
238
242
const queryParams : URLSearchParams = useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments