fix: iso string format

This commit is contained in:
phamhieu authored and Hieu Pham committed 2022-05-20 15:17:36 +07:00
1 parent 06aabb1abd
commit 2a107b2d0c
1 file changed
+1 -1
@@ -19,5 +19,5 @@ import dayjs from 'dayjs'
* Instead of using the default parsing. We should use CustomParseFormat.
*/
export const getDateFromIsoString = (dateString?: string): dayjs.Dayjs | undefined => {
return dateString ? dayjs(dateString, 'YYYY-MM-DD HH:mm:ss.SSSSSSZZ') : undefined
return dateString ? dayjs(dateString, 'YYYY-MM-DD HH:mm:ss.SSSZZ') : undefined
}