DartBot

Results 512 comments of DartBot

_This comment was originally written by bord...@gmail.com_ --- My goal is to able to parse and format HTTP date strings with DateFormat. I would expect parse() to generate a correct...

**Comment by [alan-knight](https://github.com/alan-knight)** --- I think DateTime.parse() might be a better API for reading a format that isn't internationalized. It appears that JavaScript's Date.parse() does read dates in this format....

**Comment by [alan-knight](https://github.com/alan-knight)** --- _Changed the title to: "DateFormat time zones unimplemented"._

**Comment by [floitschG](https://github.com/floitschG)** --- Fwiw issue dart-lang/sdk#1878 tracks the planned improvements to DateTime.parse.

**Comment by [lrhn](https://github.com/lrhn)** --- I don't think we are expecting to add more time zone names to be recognized by DateTime.parse, so "PST" is probably not going to work, even...

**Comment by [sgjesse](https://github.com/sgjesse)** --- No plans to add timezone to DateTime. --- _Removed [Area-Library](../labels/Area-Library), [Library-Core](../labels/Library-Core) labels._ _Added [Area-Pkg](../labels/Area-Pkg), [Pkg-Intl](../labels/Pkg-Intl) labels._

**Comment by [alan-knight](https://github.com/alan-knight)** --- _Removed [Type-Defect](../labels/Type-Defect) label._ _Added [Type-Enhancement](../labels/Type-Enhancement) label._

**Comment by [tlarsen4google](https://github.com/tlarsen4google)** --- If DateTime.timeZoneName works (it produces, e.g. "CDT") in a dart:html application (compiled to Javascript even), why not at least the single "z" in DateFormat?

**Comment by [alan-knight](https://github.com/alan-knight)** --- For one thing, people might reasonably expect that    f.parse(f.format(aDate)) == aDate which would not be true if we included a time zone.

**Comment by [alan-knight](https://github.com/alan-knight)** --- Also provide an error if the name does not match the name of the function.