History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: TIMELINE-70
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: David F. Huynh
Reporter: Alex McCarrier
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Timeline

time zone in event popup bubble is incorrect

Created: 26/Mar/07 04:09 PM   Updated: 29/Oct/07 05:19 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: firefox 2.0.0.3, mac osx


 Description  « Hide
I initialized my timeline bands to my local time zone, and the times in the event data use my local time zone, and the times shown in the event popup bubbles are correct but they always show GMT as the time zone. IE:

<event start="Mar 15 2007 15:02:00 CDT" end="Mar 15 2007 15:02:00 CDT" isDuration="false" title="Actual Start Time">ACTUAL_START</event>

In the popup bubble will show Mar 15 2007 15:02:00 GMT.

 All   Comments   Change History      Sort Order:
Change by David F. Huynh - 24/Sep/07 01:46 PM
Field Original Value New Value
Comment [ I will try to fix it in version 2.0. For the time being, please try to add this script after you include timeline-api.js:

<script>
Timeline.DefaultEventSource.Event.prototype.fillTime: function(elmt, labeller) {
        if (this._instant) {
            if (this.isImprecise()) {
                elmt.appendChild(elmt.ownerDocument.createTextNode(this.getProperty("start")));
                elmt.appendChild(elmt.ownerDocument.createElement("br"));
                elmt.appendChild(elmt.ownerDocument.createTextNode(this.getProperty("end")));
            } else {
                elmt.appendChild(elmt.ownerDocument.createTextNode(this.getProperty("start")));
            }
        } else {
            if (this.isImprecise()) {
                elmt.appendChild(elmt.ownerDocument.createTextNode(
                    this.getProperty("start") + " ~ " + this.getProperty("latestStart")));
                elmt.appendChild(elmt.ownerDocument.createElement("br"));
                elmt.appendChild(elmt.ownerDocument.createTextNode(
                    this.getProperty("earliestEnd") + " ~ " + this.getProperty("end")));
            } else {
                elmt.appendChild(elmt.ownerDocument.createTextNode(this.getProperty("start")));
                elmt.appendChild(elmt.ownerDocument.createElement("br"));
                elmt.appendChild(elmt.ownerDocument.createTextNode(this.getProperty("end")));
            }
        }
    };
</script>

Let me know if that helps. ]