Skip to content

fix: add UTC timezone by default - #9295

Open
SebastianKrupinski wants to merge 1 commit into
mainfrom
fix/timezone-picker-utc
Open

SebastianKrupinski wants to merge 1 commit into
mainfrom
fix/timezone-picker-utc

Conversation

@SebastianKrupinski

@SebastianKrupinski SebastianKrupinski commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

☑️ Resolves

  • Fixes [Bug]: UTC time zone missing from calendar event creation time zone selector nextcloud/calendar#9335
  • UTC missing: the picker builds its options from the browser’s Intl.supportedValuesOf('timeZone'). Chromium can omit UTC from that list even though it supports using UTC. The picker also filters out Etc/*, removing Etc/UTC if a browser returns that spelling. Firefox supplies UTC differently, which explains why users on the same server saw different options. The fix explicitly includes UTC once.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
    each commit containing AI-assisted content must include a git trailer: Assisted-by: AGENT_NAME:MODEL_VERSION

import { afterEach, describe, expect, it, vi } from 'vitest'
import { getTimezones } from '../../../../src/components/NcTimezonePicker/timezoneUtils.ts'

describe('getTimezones', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lets put it in https://github.com/nextcloud-libraries/nextcloud-vue/tree/main/tests/component/components

It will then not need mocks and run in Webkit, Chromium and Firefox

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay, I swapped the mocked tests for the live tests

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 62.61%. Comparing base (09553f5) to head (93a58f4).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/components/NcTimezonePicker/timezoneUtils.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9295      +/-   ##
==========================================
- Coverage   62.63%   62.61%   -0.03%     
==========================================
  Files         131      131              
  Lines        4791     4791              
  Branches     1449     1449              
==========================================
- Hits         3001     3000       -1     
- Misses       1527     1528       +1     
  Partials      263      263              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>

This branch has not been deployed

No deployments
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: UTC time zone missing from calendar event creation time zone selector

2 participants