Closed noppoMan closed 9 years ago
now.getDay() is terrible and following program doesn't consider timezone carefully.
var d = new Date(Date.UTC(now.getFullYear(), now.getMonth(), now.getDay(), now.getHours(), now.getMinutes(), now.getSeconds())); var migrateFileParts = [ d.getFullYear(), padDate(d.getMonth()+1), padDate(d.getDay()+1), padDate(d.getHours()), padDate(d.getMinutes()), padDate(d.getSeconds()), '_', name, '.js' ];
This will be fixed at v0.2.5.
now.getDay() is terrible and following program doesn't consider timezone carefully.