pass date: true

This commit is contained in:
Yuri Kuznetsov
2024-01-29 18:15:27 +02:00
parent abbffb9b15
commit 04b28dc88f
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -88,7 +88,7 @@ class Item
::create()
->withTimeZone($params['timeZone'] ?? null);
}
else if ($params['timeZone'] ?? null) {
else if ($params['date'] ?? null) {
$obj->data = Data\Date
::create()
->withTimeZone($params['timeZone'] ?? null);
@@ -96,6 +96,7 @@ class Item
unset($params['field']);
unset($params['dateTime']);
unset($params['date']);
unset($params['timeZone']);
foreach (array_keys($params) as $key) {
+4
View File
@@ -289,6 +289,10 @@ class SearchManager {
data.dateTime = true;
}
if (defs.date) {
data.date = true;
}
if (timeZone) {
data.timeZone = timeZone;
}