ofo-helpers
Advanced tools
Comparing version 1.0.10 to 1.1.0
10
index.js
@@ -83,2 +83,9 @@ const reorder_rectangle_points = points => { | ||
function fromUTC(time) { | ||
if (typeof time === 'string' && time.includes('T')) { | ||
return moment(time); | ||
} | ||
return moment(time).add(8, "hours"); | ||
}; | ||
module.exports = { | ||
@@ -90,3 +97,4 @@ mergeArraysOfObjectsUniqueById, | ||
isDefined, | ||
toTitle | ||
toTitle, | ||
fromUTC | ||
} |
{ | ||
"name": "ofo-helpers", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "OFO Tech Helpers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3990
99