Hi Jake, I believe that for your date/time format, it will be parsed by the browser.
There is an example that tests out different varients about the timezone. Also there is the issue of how you want the times displayed...if timeline is set to use zone 0 then it should be showing the times as they are for UTC time. --and they'll be an hour off during the summer. NOTE: The following needs to be checked! I could definately be wrong...in my timelines I use local/relative time..... The issue is that timeline normally shows real times, not relative (local) times. Example: a timeline is showing times for events in jan and june. The local time for both events was noon. But timeline will may well show the june event as as 11am since a local summertime noon is absolute time of 11am for a specific gmt offset. Or it may show it as noon with a summertime tz (timezone). Main issue is to test it. You need to see if a) timeline is correctly parsing your input times and b) how summer times are being displayed. If gmt is always being used as the output display tz (timezone) then you'll have a problem since the gmt tz does not use summer time. You may also be able to change the output display timezone to London time (GMT/BST). Timeline only has an time offset setting. (Number of hours) You could try using your own timezone display of the js dates. An alternative is to express all times as relative times using gmt/offset of 0 as your tz. That would require changing your data src since 12 noon gmt in jun is 1pm in London. Hope this helped. Be sure to see the tz example for more ideas. Regards, Larry Sent via BlackBerry from T-Mobile -----Original Message----- From: jake <[email protected]> Date: Tue, 21 Apr 2009 14:14:25 To: SIMILE Widgets<[email protected]> Subject: Re: Timeline running in GMT - should be BST Hi Larry, thanks for the response. The main problem I have is that the data in my xml file contains dates with BST as the timezone, i.e. <event start="Apr 22 2009 11:10:00 BST" end="Apr 22 2009 11:14:00 BST" isDuration="true" color="blue" title="Test Job 1"> </event> Can the timeline api read this date format? Or do I have to add code to subtract an hour from each time component and change "BST" to "GMT" in order to get the xml to display? The xml displays fine when I simply change BST to GMT manually On Apr 12, 10:01 pm, [email protected] wrote: > Hi Jake, > > 1. I suggest that you use the current version of Timeline, 2.3.1. > ie, use:http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js > 2. Have you set the timezone of the Timeline? > > See the timezone > example,http://code.google.com/p/simile-widgets/source/browse/timeline/trunk/... > > Regards, > > Larry > > On Apr 10, 3:46 pm, jake <[email protected]> wrote: > > > > > Hi, > > > I had my timeline working nicely up until the UK time changed to BST a > > week or so ago. Now I have 2 problems: - > > > 1) When my timeline loads, it goes to the current date/time. However > > it appears to be on GMT as its an hour behind the actual time > > > 2) The date formats for my events are pulled from a database which > > stores the dates as BST. However I get no events displayed on the > > timeline when the dates in the xml file have BST as the timezone. If I > > manually change the xml dates to all be GMT and refresh the browser, > > the events then display on the timeline ok (although 1 hour behind > > actual time) > > > Can anyone confirm that the timeline cannot handle BST timezone? > > > I'm using: - > > src="http://static.simile.mit.edu/timeline/api-2.0/timeline-api.js" > > type="text/javascript"- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
