Store the dates as number and not strings to avoid ot issues

pull/1/head
yflory 8 years ago
parent 8556ce9d17
commit 6fbd1f0028

@ -708,7 +708,7 @@ define([
else if (pHash.mode === parsedHash.mode && pHash.present) { shouldUpdate = true; }
else {
// Editing a "weaker" version of a stored hash : update the date and do not push the current hash
pad.atime = new Date().toISOString();
pad.atime = +new Date();
contains = true;
return pad;
}
@ -717,7 +717,7 @@ define([
if (shouldUpdate) {
contains = true;
// update the atime
pad.atime = new Date().toISOString();
pad.atime = +new Date();
// set the name
pad.title = name;

@ -748,8 +748,8 @@ define([
files[FILES_DATA].push({
href: href,
title: title,
atime: new Date().toISOString(),
ctime: new Date().toISOString()
atime: +new Date(),
ctime: +new Date()
});
};
var createNewFile = exp.createNewFile = function (filePath, name, type, cb) {

Loading…
Cancel
Save