mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Fixing bug with date formatting.
This commit is contained in:
parent
23c5bfd8b1
commit
87440c72ae
@ -107,9 +107,9 @@ DateFormater.prototype.getFormatedDate = function( date )
|
||||
try
|
||||
{
|
||||
if( this.CalendarWindow.calendarPreferences.getPref( "dateformat" ) == 0 )
|
||||
this.getLongFormatedDate( Date );
|
||||
return( this.getLongFormatedDate( date ) );
|
||||
else
|
||||
this.getShortFormatedDate( Date );
|
||||
return( this.getShortFormatedDate( date ) );
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
@ -121,7 +121,7 @@ DateFormater.prototype.getLongFormatedDate = function( date )
|
||||
{
|
||||
if( (navigator.platform.indexOf("Win") == 0) || (navigator.platform.indexOf("Mac") != -1) )
|
||||
{
|
||||
dateService.FormatDate( "", dateService.dateFormatLong, date.getFullYear(), date.getMonth()+1, date.getDate() )
|
||||
return( dateService.FormatDate( "", dateService.dateFormatLong, date.getFullYear(), date.getMonth()+1, date.getDate() ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user