Skip to content

feat: make timezone service public#58263

Open
miaulalala wants to merge 3 commits intomasterfrom
feat/noid/make-timezone-service-public
Open

feat: make timezone service public#58263
miaulalala wants to merge 3 commits intomasterfrom
feat/noid/make-timezone-service-public

Conversation

@miaulalala
Copy link
Contributor

  • Resolves: #

Summary

TODO

  • ...

Checklist

Signed-off-by: Anna Larch <anna@nextcloud.com>
@miaulalala miaulalala added this to the Nextcloud 34 milestone Feb 11, 2026
@miaulalala miaulalala self-assigned this Feb 11, 2026
@miaulalala miaulalala requested review from a team and tcitworld as code owners February 11, 2026 13:06
@miaulalala miaulalala added 3. to review Waiting for reviews feature: caldav Related to CalDAV internals labels Feb 11, 2026
@miaulalala miaulalala requested review from come-nc, icewind1991, leftybournes and salmart-dev and removed request for a team February 11, 2026 13:06
@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Feb 11, 2026
Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan regarding the existing IDateTimeZone interface which has similar (but not identical) functions?

Also, should existing uses of OCA\DAV\CalDAV\TimezoneService be replaced straight away with OCP\Calendar\ITimezoneService ?

interface ITimezoneService {
public function getUserTimezone(string $userId): ?string;

public function getDefaultTimezone(): string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is doing the same thing as IDateTimeZone::getDefaultTimeZone

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, maybe I can unify the interface.

* @since 34.0.0
*/
interface ITimezoneService {
public function getUserTimezone(string $userId): ?string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like IDateTimeZone::getTimeZone

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's a bit more extensive than getTimeZone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: caldav Related to CalDAV internals pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants