Explorar o código

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

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
8e2795c18c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 }