diff --git a/app/transforms/ccdb-date.js b/app/transforms/ccdb-date.js index bea5d72..7068e48 100644 --- a/app/transforms/ccdb-date.js +++ b/app/transforms/ccdb-date.js @@ -7,9 +7,10 @@ export default DS.Transform.extend({ serialize(date) { if (date !== '') { - const day = date.getDate(); - const month = date.getMonth() + 1; - const year = date.getFullYear(); + date = new Date(date); + const day = date.getUTCDate(); + const month = date.getUTCMonth() + 1; + const year = date.getUTCFullYear(); return `${year}-${month}-${day}`; } else { return null;