Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9E7E5476361 for ; Thu, 29 Aug 2002 10:22:56 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id C3B69476360 for ; Thu, 29 Aug 2002 10:22:49 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 04D0ED5F7; Thu, 29 Aug 2002 07:22:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id EEB325C02; Thu, 29 Aug 2002 07:22:53 -0700 (PDT) Date: Thu, 29 Aug 2002 07:22:53 -0700 (PDT) From: Stephan Szabo To: Aaron Cc: Subject: Re: Time slowly goes out of sync Cygwin+windows+psotgres In-Reply-To: <3D658765.5080603@netagi.com> Message-ID: <20020829072125.Q96596-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/352 X-Sequence-Number: 5466 On Fri, 23 Aug 2002, Aaron wrote: > Running postgres on cygwin and windows. > > Cygwin has the correct time. > Windows has the same time as cygwin. > > Postgres slowly goes out of sync. Over a month it ends up 10 minutes out. > > using e.g. "SELECT NOW()"; It might be possible that time() and gettimeofday() are returning different times, we use the latter, I'd guess that what you're using to get the date may use the former if it only gives integral seconds.