Skip to content

feat: make timezone service public - #58263

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

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

Conversation

@miaulalala

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

TODO

  • ...

Checklist

Signed-off-by: Anna Larch <anna@nextcloud.com>
@miaulalalamiaulalala added this to the Nextcloud 34 milestone Feb 11, 2026
@miaulalalamiaulalala self-assigned this Feb 11, 2026
@miaulalala
miaulalala requested review from a team and tcitworld as code ownersFebruary 11, 2026 13:06
@miaulalalamiaulalala 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 teamFebruary 11, 2026 13:06
@ChristophWurstChristophWurst added the pending documentation This pull request needs an associated documentation update label Feb 11, 2026

@tcitworldtcitworld left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

@nextcloud-botnextcloud-bot mentioned this pull request May 27, 2026
@nextcloud-botnextcloud-bot mentioned this pull request Jun 4, 2026
This was referenced Jun 5, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancementfeature: caldavRelated to CalDAV internalspending documentationThis pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@miaulalala@tcitworld@CarlSchwan@ChristophWurst@susnux@tobiasKaminsky@nextcloud-bot