Opened 18 years ago
Closed 3 years ago
#972 closed enhancement (wontfix)
Hard coded start date in simile timeline
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Component: | SimileTimelinePlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
The date which is used to show the simile timeline is set twice in simile.js as this
date: "Jul 28 2006 00:00:00 GMT",
If the two lines get removed the similie timeline would instead use the current date, which I guess is more useful for most people.
Arne
Attachments (0)
Change History (14)
comment:1 Changed 18 years ago by
Priority: | normal → high |
---|---|
Severity: | normal → major |
comment:2 follow-up: 3 Changed 18 years ago by
Just replace them with
date: new Date().toGMTString(),
comment:3 Changed 18 years ago by
date: new Date().toGMTString(),
This is unneeded, since the original simile code already defaults to "today" if no other date is given.
Arne
comment:4 Changed 18 years ago by
Figured it out after having re-read the original ticket...
Actually, it would be nice to have the date by default set to what is entered in the View changes from field.
comment:5 Changed 18 years ago by
... or the latest date in the returned dataset. I guess this would be easier to pass into the code than the actual value the user typed in.
comment:6 follow-up: 7 Changed 17 years ago by
please even add the year to the upper band - as I was wondering, why the timeline does not show anything... and 10% width is still enough for the upper band...
comment:7 follow-up: 8 Changed 17 years ago by
Not quite sure where I need to make the date change on this can someone give a filename
comment:8 Changed 17 years ago by
Replying to anonymous:
Not quite sure where I need to make the date change on this can someone give a filename
It worked for me to remove the two lines with hard-coded 2006 dates from each of the files stimeline/htdocs/js/simile.js
and stimeline/templates/stimeline.cs
. This always starts at today's date, rather than the actual date of the query, but that's not so bad as a quick fix; it's got to be better than July 2006.
comment:9 Changed 15 years ago by
I have found that removing the DATE from my widget install will cause IE to fail to create the timeline. It does work correctly in FF. I will try date: new Date().toGMTString(), and see if that corrects my IE problem
comment:11 Changed 11 years ago by
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:13 Changed 5 years ago by
Owner: | Ryan J Ollos deleted |
---|
Date time set to current date is useful.