summaryrefslogtreecommitdiffstats
path: root/src/time64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time64.c')
-rw-r--r--src/time64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time64.c b/src/time64.c
index 53932de..07639df 100644
--- a/src/time64.c
+++ b/src/time64.c
@@ -531,7 +531,7 @@ Time64_T mktime64(struct TM *input_date) {
531 /* Correct the user's possibly out of bound input date */ 531 /* Correct the user's possibly out of bound input date */
532 copy_tm_to_TM64(&safe_date, input_date); 532 copy_tm_to_TM64(&safe_date, input_date);
533 533
534 timev += seconds_between_years(year, (Year)(safe_date.tm_year + 1900)); 534 timev += seconds_between_years(year, (Year)(safe_date.tm_year) + 1900);
535 535
536 return timev; 536 return timev;
537} 537}
@@ -706,7 +706,7 @@ struct TM *localtime64_r (const Time64_T *timev, struct TM *local_tm)
706 ) 706 )
707 { 707 {
708 TIME64_TRACE1("Mapping tm_year %lld to safe_year\n", (Year)gm_tm.tm_year); 708 TIME64_TRACE1("Mapping tm_year %lld to safe_year\n", (Year)gm_tm.tm_year);
709 gm_tm.tm_year = safe_year((Year)(gm_tm.tm_year + 1900)) - 1900; 709 gm_tm.tm_year = safe_year((Year)(gm_tm.tm_year) + 1900) - 1900;
710 } 710 }
711 711
712 safe_time = (time_t)timegm64(&gm_tm); 712 safe_time = (time_t)timegm64(&gm_tm);