Closed detlefla closed 3 months ago
@detlefla thanks for reporting, this is most definitely a bug. I'll get around to fixing this ASAP
I've found the cause of the problem and a fix will be out shortly
@detlefla release 0.5.1 is now out with the fix. 🙏 thanks for reporting this!
A LocalDateTime object should either supply a valid
.offset
or refuse access to this attribute. It reports, however, a missing microseconds attribute. Example:It's actually possible though to obtain the offset through “naive” conversions:
Which is what I would expect from
.offset
in the first place – or an AttributeError for.offset
.