Commit eb78f6cb authored by Zachary R Perkins's avatar Zachary R Perkins
Browse files

Update functions.js

parent 3cb3530f
Pipeline #5380 passed with stages
in 45 seconds
......@@ -81,10 +81,8 @@ function ISOStringToDate(str) {
console.log(str);
const re = /\d+/g;
results = str.match(re);
console.log(results);
results = results.map(Number)
console.log(results);
// We've been supplied a day, month, year
if (results.length == 3) {
return new Date(results[0], results[1] - 1, results[2], 0, 0, 0, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment