diff --git a/src/migrations/scripts/1620229047628-opening-hours.ts b/src/migrations/scripts/1620229047628-opening-hours.ts
index 16d11df31824338ad03636bc5d97d09c7dd96e3e..69c65461eaf66c60ef1444c3eeb40b154c57fb3a 100644
--- a/src/migrations/scripts/1620229047628-opening-hours.ts
+++ b/src/migrations/scripts/1620229047628-opening-hours.ts
@@ -30,8 +30,7 @@ function updateStructure(doc) {
 }
 
 function downgradeStructure(doc) {
-  doc = restoreHours(doc);
-  return doc;
+  return restoreHours(doc);
 }
 
 function updateHours(doc) {
diff --git a/src/migrations/scripts/1620289895495-timestamp-format.ts b/src/migrations/scripts/1620289895495-timestamp-format.ts
new file mode 100644
index 0000000000000000000000000000000000000000..06e618d881482e650a7550f8fc43a243f991b97c
--- /dev/null
+++ b/src/migrations/scripts/1620289895495-timestamp-format.ts
@@ -0,0 +1,46 @@
+import { Db } from 'mongodb';
+import { getDb } from '../migrations-utils/db';
+
+export const up = async () => {
+  const db: Db = await getDb();
+
+  const cursor = db.collection('structures').find({});
+  let document;
+  while ((document = await cursor.next())) {
+    const newDoc = updateStructure(document);
+    await db.collection('structures').updateOne({ _id: document._id }, [{ $set: newDoc }]);
+  }
+  console.log(`Update done`);
+};
+
+export const down = async () => {
+  const db: Db = await getDb();
+
+  const cursor = db.collection('structures').find({});
+  let document;
+  while ((document = await cursor.next())) {
+    const newDoc = downgradeStructure(document);
+    await db.collection('structures').updateOne({ _id: document._id }, [{ $set: newDoc }]);
+  }
+  console.log(`Update done`);
+};
+
+function updateStructure(doc) {
+  return updateHours(doc);
+}
+
+function downgradeStructure(doc) {
+  return restoreHours(doc);
+}
+
+function updateHours(doc) {
+  doc.createdAt = new Date(doc.createdAt).toISOString();
+  doc.updatedAt = new Date(doc.updatedAt).toISOString();
+  return doc;
+}
+
+function restoreHours(doc) {
+  doc.createdAt = new Date(doc.createdAt).toString();
+  doc.updatedAt = new Date(doc.updatedAt).toISOString();
+  return doc;
+}