We agreed Thu Nov 29 18:00:00 GMT 2012 I wrongly converted this to a time_t. The correct time_t is date -d @1354212000 Sorry, Ian.