summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-07-20 16:26:48 +0200
committerAnna <anna@nextcloud.com>2023-08-28 12:44:11 +0200
commit513371152aa5477b10b75d3b75b847f531057538 (patch)
treed11632180fbf1342a30babb4ff5b8b289c349afc
parente8b3b774c21e7998b70c45bdaf6fe8a7b2a382c3 (diff)
downloadnextcloud-server-513371152aa5477b10b75d3b75b847f531057538.tar.gz
nextcloud-server-513371152aa5477b10b75d3b75b847f531057538.zip
fix(utility): De- deprecate getDateTime as now() only returns immutable objects
This will mean lots of code like ```$dateTime = (new DateTime())->setTimestamp(ITimeFactory::now()->getTimestamp()``` if a regular DateTime object is needed Signed-off-by: Anna Larch <anna@nextcloud.com>
-rw-r--r--lib/public/AppFramework/Utility/ITimeFactory.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php
index 7a6acf97b2d..d4f74c9d107 100644
--- a/lib/public/AppFramework/Utility/ITimeFactory.php
+++ b/lib/public/AppFramework/Utility/ITimeFactory.php
@@ -41,7 +41,6 @@ interface ITimeFactory extends ClockInterface {
/**
* @return int the result of a call to time()
* @since 8.0.0
- * @deprecated 26.0.0 {@see ITimeFactory::now()}
*/
public function getTime(): int;
@@ -50,7 +49,6 @@ interface ITimeFactory extends ClockInterface {
* @param \DateTimeZone|null $timezone
* @return \DateTime
* @since 15.0.0
- * @deprecated 26.0.0 {@see ITimeFactory::now()}
*/
public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime;