serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

Improve parser #61

Closed YuriRomanowski closed 1 year ago

YuriRomanowski commented 1 year ago

Description

Further parser improvements. Changes:

  1. Add parsing of year, allow arbitrary ordering of time reference parts;
  2. Add more time formats (according to the table here;
  3. Add date formats.

Related issue(s)

Continuation of #1

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)

dcastro commented 1 year ago

Great work! :partying_face: This actually fixes 2 issues I had noticed, but hadn't created a github issue yet:

This ended up also fixing the issue @Martoon-00 described at the bottom of this page, his example seems to work correctly now:

image