Well,
What I had written vanished when I previewed the post and pressed answered
.
Sussed out that the problem is caused by Xampp/Php on Windows. The strftime("u",
[i]timestamp[/i]) is not available in Windows(date("N",
timestamp) seems to work), when the "u" is used it results in an undefined result and you end up with a date of 01/01/1970. Also strtotime() returns the timestamp for 01/01/1970 when used with xampp on windows - it's fine if you give it a date. (I guess the returned timestamp also means it doesn't get caught by the ISSET validation).
Both work ok on Linux(and may work on windows in a different incarnation of Php and windows for all I know).
Took me a while to sus it out as I spend most of my time tending dinosaurs(mainframe programming).
Might be an idea to add a note to the documentation about xampp as I guess this will also apply to other calendar and date driven applications.(now tell me that most people are already aware of this
regards
Allan