From 9901d6d8214a9bbcf67114ba4ca7bae0da498f31 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 23 Nov 2020 09:48:21 +0300 Subject: [PATCH] fix(fields): fix issues with strtotime() function. --- src/flextype/Foundation/Entries/Fields/PublishedAtField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/Foundation/Entries/Fields/PublishedAtField.php b/src/flextype/Foundation/Entries/Fields/PublishedAtField.php index ba68d3b6..4421531b 100644 --- a/src/flextype/Foundation/Entries/Fields/PublishedAtField.php +++ b/src/flextype/Foundation/Entries/Fields/PublishedAtField.php @@ -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'))); } });