Open wangzhe258369 opened 1 month ago
Hey @RRap0so!
I would like to contribute on this. I saw the issue with datetime.utcfromtimestamp() giving the wrong time. I think switching it to datetime.fromtimestamp() could fix it and return the correct local time.
Let me know!
datetime.utcfromtimestamp()
is used in the source code, which convertstime.time()
orself.now
parameter value to the wrong datetime instance.https://github.com/spotify/luigi/blob/829fc0c36ecb4d0ae4f0680dec6d538577b249a2/luigi/tools/range.py#L219
It should be: