lambdaorm-base
Advanced tools
Comparing version 1.7.5 to 1.7.6
{ | ||
"name": "lambdaorm-base", | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", |
@@ -54,7 +54,10 @@ "use strict"; | ||
} | ||
else if (_format === 'utc-without-ms') { | ||
return utc.replace(/\.\d{3}Z$/, '.000Z'); | ||
} | ||
else if (_format === 'iso') { | ||
return LUXON.DateTime.fromISO(utc, { zone: 'utc' }).toISO(); | ||
return LUXON.DateTime.fromISO(utc).toISO(); | ||
} | ||
else { | ||
return LUXON.DateTime.fromISO(utc, { zone: 'utc' }).toFormat(format); | ||
return LUXON.DateTime.fromISO(utc).toFormat(format); | ||
} | ||
@@ -61,0 +64,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
361824
5335