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