mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user