mirror of
https://github.com/m5stack/M5Stack_MicroPython.git
synced 2026-05-20 10:14:44 -07:00
Fixed bug in utime.mktime()
not enough precission in returned float value
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
"Africa/Nouakchott","GMT0"
|
||||
"Africa/Ouagadougou","GMT0"
|
||||
"Africa/Porto-Novo","WAT-1"
|
||||
"Africa/Sao_Tome","GMT0"
|
||||
"Africa/Sao_Tome","WAT-1"
|
||||
"Africa/Tripoli","EET-2"
|
||||
"Africa/Tunis","CET-1"
|
||||
"Africa/Windhoek","CAT-2"
|
||||
@@ -80,7 +80,7 @@
|
||||
"America/Bogota","<-05>5"
|
||||
"America/Boise","MST7MDT,M3.2.0,M11.1.0"
|
||||
"America/Cambridge_Bay","MST7MDT,M3.2.0,M11.1.0"
|
||||
"America/Campo_Grande","<-04>4<-03>,M10.3.0/0,M2.3.0/0"
|
||||
"America/Campo_Grande","<-04>4<-03>,M11.1.0/0,M2.3.0/0"
|
||||
"America/Cancun","EST5"
|
||||
"America/Caracas","<-04>4"
|
||||
"America/Cayenne","<-03>3"
|
||||
@@ -89,7 +89,7 @@
|
||||
"America/Chihuahua","MST7MDT,M4.1.0,M10.5.0"
|
||||
"America/Costa_Rica","CST6"
|
||||
"America/Creston","MST7"
|
||||
"America/Cuiaba","<-04>4<-03>,M10.3.0/0,M2.3.0/0"
|
||||
"America/Cuiaba","<-04>4<-03>,M11.1.0/0,M2.3.0/0"
|
||||
"America/Curacao","AST4"
|
||||
"America/Danmarkshavn","GMT0"
|
||||
"America/Dawson","PST8PDT,M3.2.0,M11.1.0"
|
||||
@@ -177,7 +177,7 @@
|
||||
"America/Santarem","<-03>3"
|
||||
"America/Santiago","<-04>4<-03>,M8.2.6/24,M5.2.6/24"
|
||||
"America/Santo_Domingo","AST4"
|
||||
"America/Sao_Paulo","<-03>3<-02>,M10.3.0/0,M2.3.0/0"
|
||||
"America/Sao_Paulo","<-03>3<-02>,M11.1.0/0,M2.3.0/0"
|
||||
"America/Scoresbysund","<-01>1<+00>,M3.5.0/0,M10.5.0/1"
|
||||
"America/Sitka","AKST9AKDT,M3.2.0,M11.1.0"
|
||||
"America/St_Barthelemy","AST4"
|
||||
@@ -198,7 +198,7 @@
|
||||
"America/Winnipeg","CST6CDT,M3.2.0,M11.1.0"
|
||||
"America/Yakutat","AKST9AKDT,M3.2.0,M11.1.0"
|
||||
"America/Yellowknife","MST7MDT,M3.2.0,M11.1.0"
|
||||
"Antarctica/Casey","<+11>-11"
|
||||
"Antarctica/Casey","<+08>-8"
|
||||
"Antarctica/Davis","<+07>-7"
|
||||
"Antarctica/DumontDUrville","<+10>-10"
|
||||
"Antarctica/Macquarie","<+11>-11"
|
||||
@@ -235,8 +235,8 @@
|
||||
"Asia/Dubai","<+04>-4"
|
||||
"Asia/Dushanbe","<+05>-5"
|
||||
"Asia/Famagusta","EET-2EEST,M3.5.0/3,M10.5.0/4"
|
||||
"Asia/Gaza","EET-2EEST,M3.5.6/1,M10.5.6/1"
|
||||
"Asia/Hebron","EET-2EEST,M3.5.6/1,M10.5.6/1"
|
||||
"Asia/Gaza","EET-2EEST,M3.4.6/1,M10.5.6/1"
|
||||
"Asia/Hebron","EET-2EEST,M3.4.6/1,M10.5.6/1"
|
||||
"Asia/Ho_Chi_Minh","<+07>-7"
|
||||
"Asia/Hong_Kong","HKT-8"
|
||||
"Asia/Hovd","<+07>-7"
|
||||
|
||||
|
@@ -171,7 +171,7 @@ STATIC mp_obj_t time_mktime(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t
|
||||
|
||||
time_t seconds = mktime(&tm_inf);
|
||||
|
||||
return mp_obj_new_float((float)seconds);
|
||||
return mp_obj_new_float((double)seconds);
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(time_mktime_obj, 1, time_mktime);
|
||||
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define MICROPY_GIT_TAG "ESP32_LoBo_v3.1.28"
|
||||
#define MICROPY_GIT_TAG "ESP32_LoBo_v3.1.29"
|
||||
#define MICROPY_GIT_HASH "g84788230"
|
||||
#define MICROPY_BUILD_DATE "2018-03-29"
|
||||
#define MICROPY_BUILD_DATE "2018-03-31"
|
||||
#define MICROPY_VERSION_MAJOR (3)
|
||||
#define MICROPY_VERSION_MINOR (1)
|
||||
#define MICROPY_VERSION_MICRO (28)
|
||||
#define MICROPY_VERSION_STRING "3.1.28"
|
||||
#define MICROPY_VERSION_MICRO (29)
|
||||
#define MICROPY_VERSION_STRING "3.1.29"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user