[Server-devel] timestamps on backups
Martin Langhoff
martin.langhoff at gmail.com
Thu Sep 17 08:13:09 EDT 2009
On Thu, Sep 17, 2009 at 1:55 PM, Hamilton Chua <hamilton.chua at gmail.com> wrote:
>> - Can you confirm date --utc is correct on the XS and on the involved XOs?
>
> Yes, date--utc on both XS and XO's are the same if not close to each
> other, the difference being a few seconds.
thanks
> I checked the directory names and it seems they are correctly UTC.
Thanks!
> It seems the time() function returns the
> epoch based on the local timezone instead of the epoch based on UTC.
Actually - time() is doiing the right thing. It was the use of
mktime() that was bogus. Replace mktime() with gmmtime(), the 3 times
it appears in dsbackuplib.php and the problem is gone.
thanks for the debugging!
m
--
martin.langhoff at gmail.com
martin at laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Server-devel
mailing list