Date internationalization (for Leonard)

Moderator: kcleung

imslp
Site Admin
Posts: 1608
Joined: Thu Jan 01, 1970 12:00 am

Postby imslp » Sat May 19, 2007 9:51 pm

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 :)

Leonard Vertighel
Groundskeeper
Posts: 553
Joined: Fri Feb 16, 2007 8:55 am

Postby Leonard Vertighel » Sat May 19, 2007 10:00 pm

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.

imslp
Site Admin
Posts: 1608
Joined: Thu Jan 01, 1970 12:00 am

Postby imslp » Sat May 19, 2007 10:03 pm

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...

imslp
Site Admin
Posts: 1608
Joined: Thu Jan 01, 1970 12:00 am

Postby imslp » Sat May 19, 2007 10:21 pm

Actually I'll just do it right now :)

imslp
Site Admin
Posts: 1608
Joined: Thu Jan 01, 1970 12:00 am

Postby imslp » Sat May 19, 2007 10:50 pm

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 ;)

Leonard Vertighel
Groundskeeper
Posts: 553
Joined: Fri Feb 16, 2007 8:55 am

Postby Leonard Vertighel » Sat May 19, 2007 10:56 pm

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.

imslp
Site Admin
Posts: 1608
Joined: Thu Jan 01, 1970 12:00 am

Postby imslp » Sat May 19, 2007 11:04 pm

I've posted in the other thread about this :)

P.S. Now IMSLP passes W3C :)


Return to “Other”

Who is online

Users browsing this forum: No registered users and 0 guests