summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Files/FileSearchBackend.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-23 15:28:07 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-23 15:28:07 +0200
commit770881d5d66de36bb04fab8a2b9fdcae658150fa (patch)
tree24e9c54bb70d43603c9b3d492f755d9a593c3abf /apps/dav/lib/Files/FileSearchBackend.php
parent35fe1dfebe976a7efdbaaa6344d08302b848b8a7 (diff)
downloadnextcloud-server-770881d5d66de36bb04fab8a2b9fdcae658150fa.tar.gz
nextcloud-server-770881d5d66de36bb04fab8a2b9fdcae658150fa.zip
Move DateTime::ATOM to DateTimeInterface::ATOM
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/Files/FileSearchBackend.php')
-rw-r--r--apps/dav/lib/Files/FileSearchBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Files/FileSearchBackend.php b/apps/dav/lib/Files/FileSearchBackend.php
index 1732b0cc85a..6c759e71c13 100644
--- a/apps/dav/lib/Files/FileSearchBackend.php
+++ b/apps/dav/lib/Files/FileSearchBackend.php
@@ -378,7 +378,7 @@ class FileSearchBackend implements ISearchBackend {
if (is_numeric($value)) {
return max(0, 0 + $value);
}
- $date = \DateTime::createFromFormat(\DateTime::ATOM, $value);
+ $date = \DateTime::createFromFormat(\DateTimeInterface::ATOM, $value);
return ($date instanceof \DateTime && $date->getTimestamp() !== false) ? $date->getTimestamp() : 0;
default:
return $value;