Skip to content

Adds support for explicit TZ conversion requests#29

Merged
merschformann merged 4 commits intomainfrom
merschformann/request-external-tzs
May 13, 2025
Merged

Adds support for explicit TZ conversion requests#29
merschformann merged 4 commits intomainfrom
merschformann/request-external-tzs

Conversation

@merschformann
Copy link
Copy Markdown
Owner

Description

Adds support for requesting conversion to explicitly given timezones. E.g., the following call returns 11:00 in London time, which is not necessarily part of the configured timezones.

gotz 1100@Europe/London

Timezone names and options are based on IANA Time Zone database entries (same as for configured ones). Find them on this wiki page in the TZ identifier column.

Changes

  • Adds support for explicit timezone requests (gotz 1100@Europe/London)

@merschformann merschformann requested a review from Copilot May 13, 2025 20:37
@merschformann merschformann self-assigned this May 13, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for explicit timezone conversion requests by allowing explicit timezone identifiers in addition to indexed timezone configurations. Key changes include updates to request parsing logic in the core package, new tests to verify explicit timezone support in tests/request_test.go, and updates to the README screenshots.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

File Description
tests/request_test.go Added tests for explicit timezone conversion requests
core/args.go Updated function references and error messages for timezone parsing
README.md Updated screenshots and added example usage for explicit TZ support

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@merschformann merschformann merged commit 034e7da into main May 13, 2025
1 check passed
@merschformann merschformann deleted the merschformann/request-external-tzs branch May 13, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants