Page 2 of 2

Posted: Sat May 19, 2007 9:51 pm
by imslp
Code now live :)

By the way, about the forums backlinking, if it isn't too much trouble for you to check that'd be great :)

Posted: Sat May 19, 2007 10:00 pm
by Leonard Vertighel
I just realised that it still won't work for composer pages, because you can't feed it years that lie too far in the past... back to the drawing board.

You can leave it as it is for the moment however, since for the dates for which it is currently used it works correctly.

Posted: Sat May 19, 2007 10:03 pm
by imslp
Ahh.... I was planning to tell you that but forgot :/ You can just spoof the year, and then force insert the year into the MW timestamp (the year is the first 4 digits of the timestamp). You will need to do some input validation and length checking though...

Posted: Sat May 19, 2007 10:21 pm
by imslp
Actually I'll just do it right now :)

Posted: Sat May 19, 2007 10:50 pm
by imslp
And live :) Shouldn't break, but if it does (i.e. if somehow the timestamp requests the weekday or something), prepare to see whatever it is at the Unix epoch ;)

Posted: Sat May 19, 2007 10:56 pm
by Leonard Vertighel
Great, thanks. (Actually I was thinking along the same lines; I was also wondering about the internal use of unix timestamps, but as far as I can tell there is no problem, since in our case they are actually never used.)

Should we work on the "add composer" interface next? We could also integrate the automatic PD tag (if my proposed version is indeed correct). If that's OK with you, just let me know what needs to be done.

Posted: Sat May 19, 2007 11:04 pm
by imslp
I've posted in the other thread about this :)

P.S. Now IMSLP passes W3C :)