FreeBSD Bugzilla – Attachment 200902 Details for
Bug 234663
calendar(1): Parsing of MonSecond in January 2019 is wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch parsedaymonth()
parsedata.patch (text/plain), 507 bytes, created by
Katsuyuki Miyoshi
on 2019-01-08 05:21:18 UTC
(
hide
)
Description:
patch parsedaymonth()
Filename:
MIME Type:
Creator:
Katsuyuki Miyoshi
Created:
2019-01-08 05:21:18 UTC
Size:
507 bytes
patch
obsolete
>Index: parsedata.c >=================================================================== >--- parsedata.c (revision 342844) >+++ parsedata.c (working copy) >@@ -617,6 +617,10 @@ parsedaymonth(char *date, int *yearp, int *monthp, > offset = indextooffset(modifierindex); > dow = first_dayofweek_of_month(year, imonth); > d = (idayofweek - dow + 8) % 7; >+ if (d == 0) { >+ /* This day of the first week is 7th */ >+ d = 7; >+ } > > if (offset > 0) { > while (d <= yearinfo->monthdays[imonth]) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234663
: 200902