diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 9c968248470badf0fe9f0c47c93716023dd74746..5ba153ce5ffd383e3acfa6c7684965b8fac447b0 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -60,6 +60,7 @@
 #define MICROPY_PY_UHASHLIB         (1)
 #define MICROPY_PY_UHASHLIB_SHA1    (MICROPY_PY_USSL && MICROPY_SSL_AXTLS)
 #define MICROPY_PY_UHEAPQ           (1)
+#define MICROPY_PY_UTIMEQ           (1)
 #define MICROPY_PY_UJSON            (1)
 #define MICROPY_PY_URANDOM          (1)
 #define MICROPY_PY_URE              (1)
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index cf1bb6abe0c2828d8482b232e2a10d3c1ee3bfc1..c9b5480c8b0e7fbdcfd27589239600fa0fdce608 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -102,6 +102,7 @@
 #define MICROPY_PY_UJSON            (1)
 #define MICROPY_PY_URE              (1)
 #define MICROPY_PY_UHEAPQ           (1)
+#define MICROPY_PY_UTIMEQ           (1)
 #define MICROPY_PY_UHASHLIB         (1)
 #define MICROPY_PY_UTIME_MP_HAL     (1)
 #define MICROPY_PY_MACHINE          (1)