Thanks, Scott.
I've just checked in a fix. As usual, you need to hold down some
combination of Ctrl and Shift while clicking Refresh to make sure your
browser gets the latest javascript code.
David
Scott Longberry wrote:
> Hi David,
>
> This is a problem that I was experiencing myself until yesterday. I
> am serving the files locally (not running off the Simile distro) and
> I changed the following function:
>
> Timeline.GregorianDateLabeller.prototype.defaultLabelInterval
>
> in the labellers.js file so that the case statement for month added
> one more to the labelInterval call. I'll admit that I looked at the
> labelInterval function to try to fix the problem at its root, but I
> was sure what else I would break messing around with it.
>
> In my case, I also added a call to
>
> Timeline.GregorianDateLabeller.getMonthName
>
> and prepended this to my result so that my band displays the month
> and year (Jan 2007 for example). So, here's how my case statemnt
> looks now:
>
> case Timeline.DateTime.MONTH:
> var m = date.getUTCMonth();
> if (m == 0) {
> text = Timeline.GregorianDateLabeller.getMonthName(m,
> this._locale) + " " + (this.labelInterval(date,
> Timeline.DateTime.YEAR).text + 1);
> emphasized = true;
> } else {
> text = Timeline.GregorianDateLabeller.getMonthName(m,
> this._locale);
> }
> break;
>
>
> I'm sure that my fix is pretty much a hack and that David will come
> up with a better solution though!
>
> Scott
>
> On Jan 19, 2007, at 10:19 AM, [EMAIL PROTECTED] wrote:
>
>
>> 1/19/07
>>
>> I am experiencing a problem with MONTH in Timeline. When I
>> do a MONTH band, it places the wrong year in the January
>> slot, making the year one too early. In other words, when
>> 2006 should appear in the January slot in a band, 2005
>> appears instead. However, when I change the band to YEAR
>> there is no problem. For example go to
>> http://www.swingingsammy.com/timeline/timelineh.html to see
>> the use of the YEAR band with no problem and everything
>> placed in the correct location. Go to
>> http://www.swingingsammy.com/timeline/timelineh2.html to see
>> the probelm when using the MONTH band (David L. Cohen should
>> be appearing for May 12, 1965 NOT May 12, 1964). Nothing
>> else in my code has changed except changing the bands
>> intervalUnit period from MONTH to YEAR. I also am
>> expeiencing this problem with other Timeline files. Thank
>> you for your assistance.
>>
>> --
>> David L. Cohen
>>
>> _________________________________________
>>
>> Check your Email accounts at MyEmail.com
>>
>> Login from home, work, school. Anywhere!
>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general