-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug: Empty day trailing day with a different first weekday #32
Labels
bug
Something isn't working
Comments
jdhitsolutions
changed the title
Empty day
Bug: Empty day trailing day with a different first weekday
Mar 2, 2022
if ($fd) {
$day0 += [datetime]$currentDay
} |
Also, small optimization for block of 118-148 lines $underline = 4 #$abbreviated[0].Length + 1 (3 or 4)
$days = [System.Collections.Generic.List[string]]::new()
$addday = {
$d = $abbreviated[$args[0]].padleft($underline, " ")
if ($NoANSI) {
$days.add($d)
} else {
$days.add(("{0}{1}{2}" -f $PScalendarConfiguration.DayofWeek, $d, "$esc[0m"))
}
}
$n = if ($fd -eq 0) {0} else {1}
for ($n; $n -lt $abbreviated.count; $n++) {. $addday $n}
if ($fd) {. $addday 0}
|
Thanks for the suggestions. Fixed the missing day problem. Working on other issues for the next release. |
Added in v2.9.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the first weekday is Monday the Sunday of the next month will by empty.
February
Yellow square is the day of the next month. Why is it highlighted? It is a different month.
March
April
The text was updated successfully, but these errors were encountered: