Petr Kras

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromPetr Kras
ToMe
Subjectsmall typo on http://www.howtocreate.co.uk/tutorials/javascript/cookies
Date16 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
FromMe
ToPetr Kras
SubjectRe: small typo on http://www.howtocreate.co.uk/tutorials/javascript/cookies
Date16 March 2007 20:52
Petr,

> So correct number is :  31536000000

Thanks. Fixed.

Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.