Fix AR-410 - Creation date and modified date are not picking up server machines UTC offset time

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-02-08 18:01:46 +00:00
parent 89de41d208
commit a8f4846d45

View File

@@ -17,6 +17,7 @@
package org.alfresco.web.ui.common.converter;
import java.util.Date;
import java.util.TimeZone;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
@@ -63,6 +64,16 @@ public class XMLDateConverter extends DateTimeConverter
return str;
}
/*
* (non-Javadoc)
* @see javax.faces.convert.DateTimeConverter#getTimeZone()
*/
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();
}
}