diff --git a/src/pylib/Lib/datetime_impl/datetime_impl/meth/struct_tm_decl.nim b/src/pylib/Lib/datetime_impl/datetime_impl/meth/struct_tm_decl.nim index 206bf0ff4..1684c0139 100644 --- a/src/pylib/Lib/datetime_impl/datetime_impl/meth/struct_tm_decl.nim +++ b/src/pylib/Lib/datetime_impl/datetime_impl/meth/struct_tm_decl.nim @@ -37,4 +37,4 @@ else: func initTm*(tm: var Tm) = # a workaround for compile error tm.tm_mday = 1 -func initTm*: Tm = result.initTm() +func initTm*: Tm = result.tm_mday = 1