mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -17,6 +17,7 @@
|
|||||||
package org.alfresco.web.ui.common.converter;
|
package org.alfresco.web.ui.common.converter;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
import javax.faces.component.UIComponent;
|
import javax.faces.component.UIComponent;
|
||||||
@@ -69,11 +70,25 @@ public class XMLDateConverter extends DateTimeConverter
|
|||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see javax.faces.convert.DateTimeConverter#getTimeZone()
|
* @see javax.faces.convert.DateTimeConverter#getTimeZone()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public TimeZone getTimeZone()
|
public TimeZone getTimeZone()
|
||||||
{
|
{
|
||||||
// Note: this forces the display of the date to the server's timezone - it does not
|
// Note: this forces the display of the date to the server's timezone - it does not
|
||||||
// take into account any client specific timezone
|
// take into account any client specific timezone
|
||||||
return TimeZone.getDefault();
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user