kennethreitz / maya

Datetimes for Humans™
MIT License
3.41k stars 199 forks source link

Add timezone aware snap modifiers #186

Closed cognifloyd closed 4 years ago

cognifloyd commented 4 years ago

This allows for modifications in the given timezone. ie, snapping to the beginning of the day with @d uses midnight in the given timezone instead of in UTC. As usual, the maya object returned is back in UTC, only the modifications happen in the requested timezone.

This is the same as #185. But there was no response in that PR and the Github Actions bot closed it. Since I can't reopen the PR (as it is still valid, and will still merge cleanly on master), I'm opening a new PR.

timofurrer commented 4 years ago

Looks good! Thanks :tada:

I'm gonna to disable the bot .. it's causing more harm then good.

Cheers :tada: