We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0d4807 commit cd5a69bCopy full SHA for cd5a69b
src/Date.cpp
@@ -1315,7 +1315,10 @@ struct tzhead {
1315
if (increment_overflow(&y, 1))
1316
return NULL;
1317
}
1318
- tmp->tm_year = y + TM_YEAR_BASE; // FIXME: Unclear why we need to add this here
+ // Previously we returned 'year + base', so keep behaviour
1319
+ // It seems like R now returns just 'year - 1900' (as libc does)
1320
+ // But better for continuity to do as before
1321
+ tmp->tm_year = y + TM_YEAR_BASE;
1322
if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
1323
1324
tmp->tm_yday = idays;
0 commit comments