Skip to content
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

Add ability to configure indexFormat #417

Merged
merged 5 commits into from
Feb 22, 2023
Merged

Conversation

BuddhaBuddy1
Copy link

This is to implement issue 416.

@BuddhaBuddy1
Copy link
Author

BuddhaBuddy1 commented Feb 15, 2023

I may have jumped the gun here. I may need to add WeekOfYear, WeekOfMonth and QuarterOfYear to the formatting options, but apparently C# string.Format() doesn't support that. /sigh

Maybe q for quarter, w for Week of Month, and W for Week of Year?

Copy link
Collaborator

@karolz-ms karolz-ms left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you, @BuddhaBuddy1. Just one small suggestion

@karolz-ms
Copy link
Collaborator

karolz-ms commented Feb 16, 2023

/azp run AT-Warsaw-rolling

Save Now() and pass around so there is no chance of it changing during processing.
Fixed GetWeekOfMonth() bug, added test for it.
Copy link
Collaborator

@karolz-ms karolz-ms left a comment

Choose a reason for hiding this comment

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

Looks great, just one final suggestion. Thank you!

@karolz-ms
Copy link
Collaborator

/azp run AT-Warsaw-rolling

Fix processing when multiple special format characters.
Copy link
Collaborator

@karolz-ms karolz-ms left a comment

Choose a reason for hiding this comment

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

Thank you @BuddhaBuddy1 ! Really appreciate you going through these iterations to make the change so nice.

@karolz-ms
Copy link
Collaborator

@BuddhaBuddy1 you might have noticed that GH is giving us a warning sign for this PR, saying "branch is out of date with the base branch". This is because I have merged as small change to the build scripts while you were working on this PR.

I can fix it for you when merging the PR, so don't worry too much, but you can also fix it on your side by taking the GH offer to "update" your branch (merging the latest changes). There should be no conflicts--the latest changes are not touching the files you have been working on.

@karolz-ms karolz-ms merged commit 56759bb into Azure:master Feb 22, 2023
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.

None yet

2 participants