Ghost/ghost/data-generator/lib/utils/database-date.js

4 lines
123 B
JavaScript
Raw Normal View History

module.exports = function dateToDatabaseString(date) {
return date.toISOString().replace('Z','').replace('T', ' ');
};