79263778

Date: 2024-12-09 03:41:56
Score: 1
Natty:
Report link

If you want to preserve the timezone, you will need a timezone package, because the standard DateTime does not have it.

However, you can use the normal DateTime with UTC and use a package I created to parse many formats https://pub.dev/packages/any_date

See my comment here: https://stackoverflow.com/a/78357473/7128868

You still need to think about ambiguous cases, such as 01/02/03, which can be 2 Jan or 1 Feb depending on American format or not, for example.

But the package will help you with that as well.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gil Bassi