Modify

Opened 8 years ago

Last modified 7 months ago

#972 accepted enhancement

Hard coded start date in simile timeline

Reported by: tsvn@… Owned by: rjollos
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 (11)

comment:1 Changed 8 years ago by anonymous

  • Priority changed from normal to high
  • Severity changed from normal to major

Date time set to current date is useful.

comment:2 follow-up: Changed 8 years ago by markus

Just replace them with

date: new Date().toGMTString(),

comment:3 in reply to: ↑ 2 Changed 8 years ago by anonymous

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 8 years ago by markus

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 7 years ago by diroussel

... 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: Changed 7 years ago by hg@…

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 in reply to: ↑ 6 ; follow-up: Changed 7 years ago by anonymous

Not quite sure where I need to make the date change on this can someone give a filename

comment:8 in reply to: ↑ 7 Changed 7 years ago by anonymous

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.

Last edited 7 months ago by rjollos (previous) (diff)

comment:9 Changed 5 years ago by anonymous

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:10 Changed 7 months ago by anonymous

:D

comment:11 Changed 7 months ago by rjollos

  • Owner changed from coderanger to rjollos
  • Status changed from new to accepted

Add Comment

Modify Ticket

Action
as accepted .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.