cignium-hypermedia-client
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -51,3 +51,3 @@ { | ||
}, | ||
"version": "1.5.4" | ||
"version": "1.5.5" | ||
} |
@@ -7,6 +7,3 @@ import React from 'react' | ||
function getDate(date) { | ||
const offset = date.toDate().getTimezoneOffset() * 60000 | ||
const isoDate = (new Date(date - offset)).toISOString().slice(0,-1) | ||
return isoDate | ||
return date.add(date.utcOffset(), 'm').toISOString().split('T')[0] | ||
} | ||
@@ -13,0 +10,0 @@ |
Sorry, the diff of this file is too big to display
560090
2808