1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 07:34:22 +02:00

fix(fields): fix issues with strtotime() function.

This commit is contained in:
Awilum
2020-11-23 09:48:13 +03:00
parent b8ffb891d1
commit 6f722515d7

View File

@@ -14,7 +14,7 @@ if (flextype('registry')->get('flextype.settings.entries.fields.created_at.enabl
if (flextype('entries')->getStorage('fetch_single.data.created_at') == null) {
flextype('entries')->setStorage('fetch_single.data.created_at', (int) flextype('filesystem')->file(flextype('entries')->getFileLocation(flextype('entries')->getStorage('fetch_single.id')))->lastModified());
} else {
flextype('entries')->setStorage('fetch_single.data.created_at', (int) strtotime(flextype('entries')->getStorage('fetch_single.data.created_at')));
flextype('entries')->setStorage('fetch_single.data.created_at', (int) strtotime((string) flextype('entries')->getStorage('fetch_single.data.created_at')));
}
});