Hi Darren,

at first sight, this looks like a UI specific problem:

In the back-end, dates are just stored as UTC:
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/DCDate.java#L44

JSP UI seems to have a util class that renders the dates according to the
user's locale:
https://github.com/DSpace/DSpace/blob/master/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/util/UIUtil.java#L247

In XMLUI however, the dates seem to be retrieved from the metadata without
transformation into something local.

Mirage & other dri2xhtml alt based themes:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/item-view.xsl#L286

Kubrick, Classic, Reference themes:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml/DIM-Handler.xsl#L621

best regards,

Bram

-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
  
<http://www.atmire.com/>www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>


On Wed, Sep 26, 2012 at 6:16 PM, Darren Arsenault <
arse...@algonquincollege.com> wrote:

> Hi all,
>
> I have just noticed that the timestamps in DSpace are all off by +4 hours.
> The timezone must be set to GMT (I am GMT -4), but I cannot find where to
> correct this. Can anyone point me in the right direction please?
>
> Darren Arsenault
> Programmer
> Algonquin College
> 1385 Woodroffe Avenue
> Ottawa, ON, K2G 1V8
>
>
> ------------------------------------------------------------------------------
> How fast is your code?
> 3 out of 4 devs don\\\'t know how their code performs in production.
> Find out how slow your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219672;13503038;z?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to