Calendar stacks fix

Sarah Reichelt sarah.reichelt at gmail.com
Mon May 7 18:19:05 EDT 2007


Hi All,

The new date & time features of the Rev 2.8.1 betas have revealed a
bug in my Calendar stacks. I'm not quite sure how they worked before
as I had a line that converted a date from short english date to long
system date. The supplied date was actually in date items format, so
it really should never have worked, however it only stopped working in
2.8.1

Anyway, if anyone is using the stacks, there is an update. If you
already have any of the calendar stacks embedded in your projects and
just want to apply the fix (one line), here it is:

edit the stack script of the calendar stack (any of the 3 sizes, they
are all the same)
find the "setupCurrentDate" handler
look for these 3 lines:
  put today into tDate
  convert tDate from short English date to long system date
  put titleCase(tDate) into fld "Selected"

replace the middle of these lines with:
  convert tDate from dateItems to long system date

Don't forget to save the stack when you have made the change.

Cheers,
Sarah



More information about the use-livecode mailing list