Hence the 'should/might' :)

 

Thanks,

Nathan.

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Jochen Daum
Sent: Wednesday, 29 September 2010 10:49 a.m.
To: [email protected]
Subject: Re: [phpug] Daylight Saving

 

To fix this very particular problem, you could try (untested)
strtotime("last Sunday 12:00") and it should/might return the EPOC for lunch
time that day (assuming it's only the date that matters to you, and not the
time).

I'm guessing the problem your having is that strtotime("last Sunday") is 

returning the EPOC for midnight which is being translated as Saturday 11pm.

strtotime always made me feel uneasy. Feeling confirmed.

 


Kind Regards,

Jochen Daum




-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to