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

Update TimeTool.cs #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

GeErghon
Copy link

Error creating a week instance at the beginning of the year, the start and end dates are wrong. Ex
DateTime moment = new DateTime (2019, 1, 2);
Console.WriteLine ("Date {0}:", moment.ToShortDateString ());
var w = new Week (moment);
Console.WriteLine ("Week: {0} {1} - {2}", w, w.FirstDayOfWeek.DayOfWeek, w.LastDayOfWeek.DayOfWeek);
// got: w / c 1 2019; 2019-01-01 - 2019-01-07 | 6.23: 59 Tuesday-Monday
// expecting: Week: w / c 1 2019; 2019-01-01 - 2019-01-05 Sunday-Saturday

Error creating a week instance at the beginning of the year, the start and end dates are wrong. Ex
DateTime moment = new DateTime (2019, 1, 2);
Console.WriteLine ("Date {0}:", moment.ToShortDateString ());
var w = new Week (moment);
Console.WriteLine ("Week: {0} {1} - {2}", w, w.FirstDayOfWeek.DayOfWeek, w.LastDayOfWeek.DayOfWeek);
// got: w / c 1 2019; 2019-01-01 - 2019-01-07 | 6.23: 59 Tuesday-Monday
// expecting: Week: w / c 1 2019; 2019-01-01 - 2019-01-05 Sunday-Saturday
@EvanMulawski
Copy link

@Giannoudis Do you have time to look at this and possibly push out a patch version? Just ran into this issue. Thanks!

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