correij / v8-i18n

Automatically exported from code.google.com/p/v8-i18n
Other
0 stars 0 forks source link

Provide a default template for formatting date with time. #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var locale = new v8Locale(navigator.language);
var formatter = locale.createDateTimeFormat({'dateType': 'medium',
                                             'timeType': 'medium'});
var s = formatter.format(someDate);

What is the expected output?

Something like 'Apr 3, 2012 12:23', date with time.

What do you see instead?

Something like 'Apr 3, 2012', i.e. date without time.

What version of the product are you using? On what operating system?

Revision 67, the latest included in Chromium sources.

Original issue reported on code.google.com by oleg@chromium.org on 12 May 2012 at 10:26

GoogleCodeExporter commented 8 years ago
We are working on new version of the API where this problem is solved. We would 
prefer not to extend the deprecated API.

Original comment by c...@google.com on 22 May 2012 at 3:49