From 590e0a00aa37a058520dc9e892faae643774eda1 Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Mon, 24 Mar 2003 14:50:35 +0000 Subject: [PATCH] Fixing bug 198579, problem with DST in small calendar. --- .../resources/content/datepicker/calendar.xml | 781 +++++++++--------- 1 file changed, 392 insertions(+), 389 deletions(-) diff --git a/calendar/resources/content/datepicker/calendar.xml b/calendar/resources/content/datepicker/calendar.xml index 7477834e87ef..d314ba7da0e3 100644 --- a/calendar/resources/content/datepicker/calendar.xml +++ b/calendar/resources/content/datepicker/calendar.xml @@ -1,389 +1,392 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - see bug 63370 for details - - var localeService = Components.classes[ - "@mozilla.org/intl/nslocaleservice;1" - ].getService(Components.interfaces.nsILocaleService); - - var stringBundleService = Components.classes[ - "@mozilla.org/intl/stringbundle;1" - ].getService(Components.interfaces.nsIStringBundleService); - - var bundleURL = "chrome://calendar/locale/dateFormat.properties"; - var dateBundle = stringBundleService.createBundle( - bundleURL, localeService.GetApplicationLocale() - ); - - // Reset the headers - var header = document.getAnonymousNodes(this)[0]. - childNodes[1].childNodes[0] - ; - - for (var column = 0; column < header.childNodes.length; column++) { - - header.childNodes[column].setAttribute( "value", - dateBundle.GetStringFromName( - "day."+ - ((this.weekStart + column) % 7 + 1) + - ".short" - ) - ); - } - - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + see bug 63370 for details + + var localeService = Components.classes[ + "@mozilla.org/intl/nslocaleservice;1" + ].getService(Components.interfaces.nsILocaleService); + + var stringBundleService = Components.classes[ + "@mozilla.org/intl/stringbundle;1" + ].getService(Components.interfaces.nsIStringBundleService); + + var bundleURL = "chrome://calendar/locale/dateFormat.properties"; + var dateBundle = stringBundleService.createBundle( + bundleURL, localeService.GetApplicationLocale() + ); + + // Reset the headers + var header = document.getAnonymousNodes(this)[0]. + childNodes[1].childNodes[0] + ; + + for (var column = 0; column < header.childNodes.length; column++) { + + header.childNodes[column].setAttribute( "value", + dateBundle.GetStringFromName( + "day."+ + ((this.weekStart + column) % 7 + 1) + + ".short" + ) + ); + } + + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +