1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 15:14:20 +02:00

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

This commit is contained in:
Awilum
2020-11-23 09:48:21 +03:00
parent 6f722515d7
commit 9901d6d821

View File

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