You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "Kohei Nozaki (JIRA)" <ji...@apache.org> on 2015/05/20 13:08:00 UTC

[jira] [Closed] (ROL-2076) Links based on date wrongly produced on multi-timezone environment

     [ https://issues.apache.org/jira/browse/ROL-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kohei Nozaki closed ROL-2076.
-----------------------------
    Resolution: Fixed

Sending        app/src/main/java/org/apache/roller/util/DateUtil.java
Sending        app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java
Sending        app/src/main/java/org/apache/roller/weblogger/ui/core/tags/calendar/BigWeblogCalendarModel.java
Sending        app/src/main/java/org/apache/roller/weblogger/ui/core/tags/calendar/CalendarTag.java
Sending        app/src/main/java/org/apache/roller/weblogger/ui/rendering/pagers/WeblogEntriesDayPager.java
Sending        app/src/main/java/org/apache/roller/weblogger/ui/rendering/pagers/WeblogEntriesMonthPager.java
Transmitting file data ......
Committed revision 1680521.

> Links based on date wrongly produced on multi-timezone environment
> ------------------------------------------------------------------
>
>                 Key: ROL-2076
>                 URL: https://issues.apache.org/jira/browse/ROL-2076
>             Project: Apache Roller
>          Issue Type: Bug
>          Components: User Interface - General
>    Affects Versions: 5.1.2
>         Environment: The problem is reproducible in both of
> * WildFly 8.2.0.Final + PostgreSQL 9.3.4
> * Tomcat 7.0.54 + PostgreSQL 9.2.10
>            Reporter: Kohei Nozaki
>            Assignee: Roller Unassigned
>         Attachments: ROL-2076-incomplete.patch, ROL-2076-update1.patch, calendarbug01.png, calendarbug02.png, calendarbug03.png
>
>
> In multi-timezone environment such as
> * System timezone is GMT+9 (Japan)
> * Blog timezone is GMT-6 or -5 (Chicago)
> Links based on date wrongly produced. I'll attach some of screen shots here so that we can grasp the problem easily.
> The cause is absense of explicitly time zone setting in use of {{Calendar}} or {{SimpleDateFormat}}. I found many of problematic implementation in many sources, but I have not fixed them all yet.
> A workaround is that setting a same time zone to system timezone and blog timezone, but I believe that this problem should be fixed because Roller can manage multiple blogs and they may have multiple time zones.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)