diff options
author | Anna Larch <anna@nextcloud.com> | 2023-07-20 16:26:48 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-08-25 08:55:44 +0200 |
commit | 66c1aa4a3c4df6cb9300150c89e5eeb0cb8d53c0 (patch) | |
tree | 2a9119ba7c19f02bd8556af6a25b6d777001645c /lib | |
parent | d498f9aa383b6d5bc7c5192a496dfd969b91d985 (diff) | |
download | nextcloud-server-66c1aa4a3c4df6cb9300150c89e5eeb0cb8d53c0.tar.gz nextcloud-server-66c1aa4a3c4df6cb9300150c89e5eeb0cb8d53c0.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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/AppFramework/Utility/ITimeFactory.php | 2 |
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; |