Browse Source

Merge branch 'master' of https://gitee.com/openLuat/luatos-soc-air105

Dozingfiretruck 3 năm trước cách đây
mục cha
commit
8e2795c18c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      bsp/common/src/bsp_common.c

+ 2 - 0
bsp/common/src/bsp_common.c

@@ -2258,6 +2258,7 @@ struct tm *__wrap_localtime (const time_t *_timer)
 	prvTM.tm_hour = Time.Hour;
 	prvTM.tm_min = Time.Min;
 	prvTM.tm_sec = Time.Sec;
+	prvTM.tm_wday = Time.Week;
 	return &prvTM;
 }
 
@@ -2281,6 +2282,7 @@ struct tm *__wrap_gmtime (const time_t *_timer)
 	prvTM.tm_hour = Time.Hour;
 	prvTM.tm_min = Time.Min;
 	prvTM.tm_sec = Time.Sec;
+	prvTM.tm_wday = Time.Week;
 	return &prvTM;
 }