summaryrefslogtreecommitdiff
path: root/bsp/apollo2
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-07 21:49:25 +0800
committerMeco Man <[email protected]>2021-02-07 21:49:25 +0800
commit86ebf17a2360de740219cf9a5441cb72629c5a1d (patch)
tree15dba58cd5f985467300d25e774c6c366dbb0055 /bsp/apollo2
parent64bd41d6540bc074d3a020b445da664f1067d4bb (diff)
localtim改为gmtime
Diffstat (limited to 'bsp/apollo2')
-rw-r--r--bsp/apollo2/board/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/apollo2/board/rtc.c b/bsp/apollo2/board/rtc.c
index 3d2e1c8e7a..dbae7cf3c1 100644
--- a/bsp/apollo2/board/rtc.c
+++ b/bsp/apollo2/board/rtc.c
@@ -85,7 +85,7 @@ static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
case RT_DEVICE_CTRL_RTC_SET_TIME:
time = (time_t *)args;
- time_new = localtime(time);
+ time_new = gmtime(time);
hal_time.ui32Hour = time_new->tm_hour;
hal_time.ui32Minute = time_new->tm_min;