[Webkit-unassigned] [Bug 59752] Allow Localized Date Strings for Date Input Fields
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 28 19:08:28 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=59752
--- Comment #7 from Joseph Pecoraro <joepeck at webkit.org> 2011-04-28 19:08:28 PST ---
> > Source/WebCore/platform/text/LocalizedDate.h:38
> > +// Parses a string representation of a date string localized
> > +// for the browser's current locale for a particular date type.
> > +// If the input string is not valid or an implementation doesn't
> > +// support localized dates, this function returns an empty string.
> > +String parseLocalizedDate(const String&, DateComponents::Type);
>
> Should add a comment about what should be returned for valid inputs.
Arg. This is a good point. And raises an issue. Currently I added the following:
// If the input string is valid this function returns a valid
// HTML5 date string for the specified type. HTML5 date strings
// are a subset of ISO-8601.
However, I could instead have the function return a DateComponents object,
That would match the format function. Or a double value, representing
the milliseconds since the 1970 epoch (which can then be serialized
pretty easily by BaseDateTimeInputType. Do you have a preference for
once of the other types?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list