in reply to Re^6: some problem with date
in thread some problem with date

I hope you figured out that's because I had the parameters to timegm in the wrong order. Fixed.