Fix AR-453 Repository bootstrap fails when performed under Thai regional settings

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2502 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-02-28 11:14:16 +00:00
parent e2e2fbfcbf
commit 4087735d04

View File

@@ -17,6 +17,7 @@
package org.alfresco.web.ui.common.converter;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import javax.faces.component.UIComponent;
@@ -69,11 +70,25 @@ public class XMLDateConverter extends DateTimeConverter
* (non-Javadoc)
* @see javax.faces.convert.DateTimeConverter#getTimeZone()
*/
@Override
public TimeZone getTimeZone()
{
// Note: this forces the display of the date to the server's timezone - it does not
// take into account any client specific timezone
return TimeZone.getDefault();
}
/*
* (non-Javadoc)
* @see javax.faces.convert.DateTimeConverter#getLocale()
*/
@Override
public Locale getLocale()
{
// Note: this forces the display of the date to the server's timezone - it does not
// take into account any client specific timezone
return Locale.getDefault();
}
}