[PATCH] rtc:ds1307:it assume 20xx not 19xx.

2018-06-03 Thread Linkui
If we settime between 1970 and 2000. for example: $ date 052915571978 $ hwclock -w it will be wrong, this patch fix it. Signed-off-by: Linkui --- drivers/rtc/rtc-ds1307.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc

[PATCH] It assume 20xx not 19xx.

2018-05-30 Thread Linkui
From: Linkui Xiao If we settime between 1970 and 2000. for example: root# date 052915571978 root# hwclock -w It will be wrong, this patch fix the bug. Signed-off-by: Linkui Xiao --- drivers/rtc/rtc-ds1307.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a