Email conversation
From | Petr Kras |
To | Me |
Subject | small typo on http://www.howtocreate.co.uk/tutorials/javascript/cookies |
Date | 16 March 2007 09:14 |
Hello Jones,
[Ed. ARGH! My name is not Jones - why have so many people called me that
recently?]
on page http://www.howtocreate.co.uk/tutorials/javascript/cookies
is example of setting cookie's expiration
var oneYearLater = new Date( theDate.getTime() + 30758400000 );
but one year is 365 days, not 356.
So correct number is : 31536000000
Regards,
Petr Kras
From | Me |
To | Petr Kras |
Subject | Re: small typo on http://www.howtocreate.co.uk/tutorials/javascript/cookies |
Date | 16 March 2007 20:52 |
Petr,
> So correct number is : 31536000000
Thanks. Fixed.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/