-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PT Run > Date and Time plugin] Setting First week of year
and First day of week
#33406
Open
htcfreek
wants to merge
23
commits into
microsoft:main
Choose a base branch
from
htcfreek:PT_DTSetting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+483
−43
Conversation
This file contains 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
Setting for First week
and First day of week
Setting for First week
and First day of week
First week of year
and First day of week
htcfreek
commented
Jun 19, 2024
...launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests/TimeAndDateHelperTests.cs
Outdated
Show resolved
Hide resolved
...launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests/TimeAndDateHelperTests.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
htcfreek
commented
Jun 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Idea-Enhancement
New feature or request on an existing product
Needs-Review
This Pull Request awaits the review of a maintainer.
Run-Plugin
Things that relate with PowerToys Run's plugin interface
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.
Summary of the Pull Request
This PR implements two new plugin settings:
First week of year
![image](https://private-user-images.githubusercontent.com/61519853/342077081-c866ffc2-2a21-438c-9a1a-5f4c7f68a22e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTcxMjgsIm5iZiI6MTcxOTgxNjgyOCwicGF0aCI6Ii82MTUxOTg1My8zNDIwNzcwODEtYzg2NmZmYzItMmEyMS00MzhjLTlhMWEtNWY0YzdmNjhhMjJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA2NTM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0N2M5MmQzZmZmNDY1YTE5ZjhhMmZkZDJlOTRjZWJhODJiYjE2NWQwN2QxMjk3MDlmNzc1NGU4OTAyZWE4MDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hGCFjfXDArSOFFTsq_A96djhFeI1d3CQX3h7XTRf3MM)
First day of week
![image](https://private-user-images.githubusercontent.com/61519853/342078069-b2ec125b-d87c-40c5-8793-743a1ffae237.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTcxMjgsIm5iZiI6MTcxOTgxNjgyOCwicGF0aCI6Ii82MTUxOTg1My8zNDIwNzgwNjktYjJlYzEyNWItZDg3Yy00MGM1LTg3OTMtNzQzYTFmZmFlMjM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA2NTM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4M2Q2NjQxYWFlNDg1NDI2ZTgwMzhmMGQxZjI1MmY1YTBlMTgxNjFkZTE0Y2Y1ZDA2YTgwM2ZjMTRhYjE1MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.m_W4ho5x7054pDSrvdx1mUo8GPRVG5aocmsxrByXj20)
PR Checklist
Detailed Description of the Pull Request / Additional comments
For both settings the users can decide to be in sync with the system settings (default) or to use their own setting. The order of days for the
first day of week
setting is based on the current system culture.PT Run respects these settings for the relevant results:
Validation Steps Performed
Manual tested and running unit tests.