mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
4 lines
123 B
JavaScript
4 lines
123 B
JavaScript
|
module.exports = function dateToDatabaseString(date) {
|
||
|
return date.toISOString().replace('Z','').replace('T', ' ');
|
||
|
};
|