Hello! Thanks for responding.
@Ivo - you are right about the second one. That was my mistake.
@Pawel - The localization performed by the filter is a big value. But my expectation for it is that it would be uniform in its handling of dates. If Javascript localizes the date when creating a Date object (which it arguably should), then my assumption was that the filter would do the same.
But after further thought, I realize this is tricky territory; if a date is coming from the server (as most probably are) then the app cannot assume that a local timezone applies. That said, if a server is storing dates, then it really _should_ be stored with a timezone anyway.
I can see both sides of this, but my personal preference would be to assume local time (rather than UTC) when none is specified. This would make the filter consistent in its output when handling strings and Date objects - and make the most sense for the "best practice" cases for client- and server-generated date strings.
Thoughts?
Josh