Source
75
75
time->tm_mday = bcd2bin(time->tm_mday);
76
76
time->tm_mon = bcd2bin(time->tm_mon);
77
77
time->tm_year = bcd2bin(time->tm_year);
78
78
century = bcd2bin(century);
79
79
}
80
80
81
81
#ifdef CONFIG_MACH_DECSTATION
82
82
time->tm_year += real_year - 72;
83
83
#endif
84
84
85
-
if (century)
85
+
if (century > 20)
86
86
time->tm_year += (century - 19) * 100;
87
87
88
88
/*
89
89
* Account for differences between how the RTC uses the values
90
90
* and how they are defined in a struct rtc_time;
91
91
*/
92
92
if (time->tm_year <= 69)
93
93
time->tm_year += 100;
94
94
95
95
time->tm_mon--;