]> source.dussan.org Git - nextcloud-server.git/commit
fix(utility): De- deprecate getDateTime as now() only returns immutable objects 40039/head
authorAnna Larch <anna@nextcloud.com>
Thu, 20 Jul 2023 14:26:48 +0000 (16:26 +0200)
committerAnna <anna@nextcloud.com>
Mon, 28 Aug 2023 10:44:11 +0000 (12:44 +0200)
commit513371152aa5477b10b75d3b75b847f531057538
treed11632180fbf1342a30babb4ff5b8b289c349afc
parente8b3b774c21e7998b70c45bdaf6fe8a7b2a382c3
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>
lib/public/AppFramework/Utility/ITimeFactory.php