Add customizable date and time formats (fixes #25)#31
Draft
Conversation
|
|
Co-authored-by: bmuenzenmeyer <298435+bmuenzenmeyer@users.noreply.github.com>
Co-authored-by: bmuenzenmeyer <298435+bmuenzenmeyer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] could you propose a PR for this issue?
Add customizable date and time formats (fixes #25)
Sep 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses issue #25 by adding support for customizable date and time formatting in meeting issue titles and agenda times.
Problem
The action currently uses the server's locale for date and time formatting, which produces formats like
MM/DD/YYYYdates and 12-hour times. Users wanted the ability to use ISO-8601YYYY-MM-DDdate format and 24-hour time format for better standardization and international compatibility.Solution
Added two new optional input parameters with backward-compatible defaults:
DATE_FORMAT: Controls date formatting in issue titles and outputslocale(default): Uses system locale formatting (e.g.,1/15/2025)iso: Uses ISO-8601 format (e.g.,2025-01-15)TIME_FORMAT: Controls time formatting in meeting time displays12(default): Uses 12-hour format with AM/PM (e.g.,2:30 PM)24: Uses 24-hour format (e.g.,14:30)Usage Examples
Default behavior (unchanged):
ISO-8601 dates with 24-hour times:
Implementation Details
formatDate.tsutility module withformatDate(),formatTime(), andformatDateTime()functionsextractInput.tsto parse the new format parameters with proper defaultsoutput.tsto use configurable date formatting for issue titles and GitHub Action outputsgenerateMeetingTimes.tsto use configurable time formatting for timezone displaysBackward Compatibility
All existing workflows will continue to work without any changes, as the new parameters are optional and default to the current behavior.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.