From 37b5c5cfe9df70fa2a2c6c681a903b7c356aec74 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 12 Aug 2011 02:28:45 -0700 Subject: break(date): remove support for 'long', 'longtime' date formats and 'z' flag The support for the 'z' formatting flag was removed becase the timezone info can't be retrieved from the browser apis (except for en-US locale on some but not all browsers). For this reason we don't want to support this flag at all. Related to this, since the 'long' and 'longtime' datetime formats require the 'z' flag in the formatting string, we are removing support for this format as well. --- src/service/locale.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/service') diff --git a/src/service/locale.js b/src/service/locale.js index 0e8c3b42..e94c2100 100644 --- a/src/service/locale.js +++ b/src/service/locale.js @@ -50,14 +50,12 @@ angularServiceInject('$locale', function() { DAY: 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','), SHORTDAY: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(','), AMPMS: ['AM','PM'], - long: 'MMMM d, y h:mm:ss a z', medium: 'MMM d, y h:mm:ss a', short: 'M/d/yy h:mm a', fullDate: 'EEEE, MMMM d, y', longDate: 'MMMM d, y', mediumDate: 'MMM d, y', shortDate: 'M/d/yy', - longTime: 'h:mm:ss a z', mediumTime: 'h:mm:ss a', shortTime: 'h:mm a' } -- cgit v1.2.3