Bug 1325745 - Don't allow kDateFormatShort and kDateFormatWeekday any more since ICU doesn't support them. r=aleth
authorJorg K <jorgk@jorgk.com>
Sun, 08 Jan 2017 09:11:16 +0100
changeset 20977 65c295598322d6863a3f6174de512c384ca19443
parent 20976 a614f645d43da4c018f7f6385c561e4b3324c65f
child 20978 d16104cb778d72d07bdb978d9fb194a623d29aee
push id12724
push usermozilla@jorgk.com
push dateSun, 08 Jan 2017 08:25:21 +0000
treeherdercomm-central@eef804a8d9cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth
bugs1325745
Bug 1325745 - Don't allow kDateFormatShort and kDateFormatWeekday any more since ICU doesn't support them. r=aleth
mailnews/base/src/nsMsgDBView.cpp
--- a/mailnews/base/src/nsMsgDBView.cpp
+++ b/mailnews/base/src/nsMsgDBView.cpp
@@ -7885,17 +7885,17 @@ static void getDateFormatPref( nsIPrefBr
   // read
   int32_t nFormatSetting( 0 );
   nsresult result = _prefBranch->GetIntPref( _prefLocalName, &nFormatSetting );
   if ( NS_SUCCEEDED( result ) )
   {
     // translate
     nsDateFormatSelector res( nFormatSetting );
     // transfer if valid
-    if ( ( res >= kDateFormatNone ) && ( res <= kDateFormatWeekday ) )
+    if ( ( res >= kDateFormatNone ) && ( res <= kDateFormatShort ) )
       _format = res;
   }
 }
 
 nsresult nsMsgDBView::InitDisplayFormats()
 {
   m_dateFormatDefault   = kDateFormatShort;
   m_dateFormatThisWeek  = kDateFormatShort;