webfeed icon indicating copy to clipboard operation
webfeed copied to clipboard

Fix/datetime parser

Open imprologic opened this issue 2 years ago • 0 comments

Timezone parsing is not yet implemented in Dart's DateFormat class, see https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html (scroll to "The following characters are reserved and currently are unimplemented").

This PR tries to fix this issue by adding a timezone parsing function, capable of:

  • parsing the most common timezone abbreviations, like GMT, EST, PST etc.
  • parsing timezone offsets like +0100 or -05:00.

imprologic avatar Apr 29 '23 19:04 imprologic