[Python-bugs-list] [Bug #110854] Re: Date problem unresolved [DIN 2646] (fwd) (PR#109)

noreply@sourceforge.net noreply@sourceforge.net
Wed, 13 Sep 2000 04:09:14 -0700


Bug #110854, was updated on 2000-Aug-01 14:37
Here is a current snapshot of the bug.

Project: Python
Category: None
Status: Closed
Resolution: Works For Me
Bug Group: Irreproducible
Priority: 3
Summary: Re: Date problem unresolved [DIN 2646] (fwd) (PR#109)

Details: Jitterbug-Id: 109
Submitted-By: Curt Finch <curt@journyx.com>
Date: Thu, 14 Oct 1999 14:58:08 -0500 (CDT)
Version: None
OS: None

anyone heard of any python time bugs?

__________________________________________________________________
Web-Based Project Management,                              Journyx
TimeSheet and Tracking Software       FREE           (800)755-9878
FREE at http://journyx.com/wts.html           curt@www.JOURNYX.com
------------------------------------------------------------------


---------- Forwarded message ----------
Date: Thu, 14 Oct 1999 14:09:35 -0500 (CDT)
From: John Maddalozzo <john@journyx.com>
To: "Stappert, Andreas" <andreas.stappert@key-work.de>
Cc: support@journyx.com
Subject: Re: Date problem unresolved [DIN 2646]


Andreas, 

I'm stumped. It seems there is a problem in the python time library.
I may have to post a message to a python news group if code inspection
doesn't turn anything up. 2646 is the problem report number. 
We'll dig around and see what we can find out.

Meanwhile, you might want to send me the output of the uname -a command
and any other information you have that might help. (Linux level, etc)

Regards, John


__________________________________________________________________
Web-Based Project Management and TimeSheet Software    JournyxTime
FREE at http://journyx.com/wts.html
John Maddalozzo  - john@JOURNYX.com  (512)834-8888 / (800)755-9878
------------------------------------------------------------------

On Thu, 14 Oct 1999, Stappert, Andreas wrote:

> Hi John,
> 
> Well, for some reason I always have the strangest thing happen to me :-)
> even though I try to conform to every standards I know of...
> 
> Here is what I get. Looks like it matches your machine (our server date is
> set a day off). Do you think it would help if we change the timezone to EST
> or something?
> 
> > date +%s
> 939838233
> timesheet:~>
> 
> The hardware is an (old) 486 (yes I know old ... that is just our
> testserver, once we are putting Journyx to real use, we are going to put a
> nicer machine underneath it). I don't know the mainboard type by heart.
> 
> Oh, I should probably also tell you this: At the beginning, the time was
> right but once we got some modifications done and rebootet the machine, it
> started acting this strange.
> 
> Regards,
> Andreas
> 
> -----Ursprungliche Nachricht-----
> Von: John Maddalozzo [mailto:john@journyx.com]
> Gesendet: Donnerstag, 14. Oktober 1999 20:05
> An: Stappert, Andreas
> Betreff: Re: AW: AW: Date problem unresolved
> 
> 
> 
> Very strange, Andreas.
> the time.time() result shows the number of seconds since the "epoch"
> (see http://python.org/doc/current/lib/module-time.html)
> Your number of seconds should be somewhere between
> 939916983.851	(the time on my computer when I wrote example note below)
> and
> 939923915.897   (the time on my computer I just now checked)
> 
> What does the command
> date +%s
> say?
> What hardware are you using?
> 
> __________________________________________________________________
> Web-Based Project Management and TimeSheet Software    JournyxTime
> FREE at http://journyx.com/wts.html
> John Maddalozzo  - john@JOURNYX.com  (512)834-8888 / (800)755-9878
> ------------------------------------------------------------------
> 
> On Thu, 14 Oct 1999, Stappert, Andreas wrote:
> 
> > Here you go (my mistake):
> >
> > timesheet:~/jtime/jtime/pi/bin> python
> > Python 1.5.2 (#1, Sep 27 1999, 17:01:09)  [GCC egcs-2.91.66 19990314/Linux
> > (egcs
> > - on linux2
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > >>> import time
> > >>> import wtdate
> > >>> wtdate.today()
> > Thu 13 Jul 1995
> > >>> time.localtime(time.time())
> > (1995, 7, 13, 8, 38, 9, 3, 194, 1)
> > >>> time.time()
> > 805617494.587
> > >>> time.gmtime(time.time())
> > (1995, 7, 13, 6, 38, 54, 3, 194, 0)
> > >>> time.gzname
> > Traceback (innermost last):
> >   File "<stdin>", line 1, in ?
> > AttributeError: gzname
> > >>> time.timezone
> > -3600
> > >>> time.tzname
> > ('CET', 'CEST')
> > >>>
> >
> > -----Ursprungliche Nachricht-----
> > Von: John Maddalozzo [mailto:john@journyx.com]
> > Gesendet: Donnerstag, 14. Oktober 1999 19:09
> > An: Stappert, Andreas
> > Betreff: Re: AW: Date problem unresolved
> >
> >
> >
> > Hi Andreas,
> > Did you remember to source setup?
> > In pi/bin at the shell prompt do:
> > . ./setup
> > You need to do that first. To check that it has been sourced, do
> > echo $PYTHONPATH
> > that should return something like this:
> > [rebobiz] /home/john_scratch/jtime/jtime/pi/bin 753>. ./setup
> > [rebobiz] /home/john_scratch/jtime/jtime/pi/bin 754>echo $PYTHONPATH
> >
> //home/john_scratch/jtime/jtime/pi/apache/wtlib://home/john_scratch/jtime/jt
> >
> ime/pd/Linux/python/lib/python1.5/://home/john_scratch/jtime/jtime/pi/apache
> > /serverroot/cgi-bin
> >
> > Then it should be able to find wtdate.pyc in pi/apache/wtlib
> >
> > Regards, John
> >
> > On Thu, 14 Oct 1999, Stappert, Andreas wrote:
> >
> > > Hi John,
> > >
> > > I already get stuck when I try to import wtdate:
> > >
> > >  python
> > > Python 1.5.1 (#1, Mar 21 1999, 22:49:36)  [GCC egcs-2.91.66 19990314/Li
> on
> > > linux
> > > -i386
> > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > > >>> import time
> > > >>> import wtdate
> > > Traceback (innermost last):
> > >   File "<stdin>", line 1, in ?
> > > ImportError: No module named wtdate
> > >
> > > -----Ursprungliche Nachricht-----
> > > Von: John Maddalozzo [mailto:john@journyx.com]
> > > Gesendet: Donnerstag, 14. Oktober 1999 18:05
> > > An: Stappert, Andreas
> > > Cc: support@journyx.com
> > > Betreff: Re: Date problem unresolved
> > >
> > >
> > >
> > > Andreas,
> > > This must be some problem with resolving the time zone.
> > > Please do the following and send me the output.
> > >
> > > What this is doing is invoking python and using its libraries to get
> > dates.
> > > I'm hoping that this will give us some idea of what is wrong.
> > > Regards, John
> > >
> > > cd <jtime install dir>/jtime/pi/bin
> > > . ./setup
> > > python
> > > import time
> > > import wtdate
> > > wtdate.today()
> > > time.localtime(time.time())
> > > time.time()
> > > time.gmtime(time.time())
> > > time.gzname
> > > time.timezone
> > >
> > > For example when I do it here I get...
> > >
> > > [rebobiz] /home/john_scratch/jtime/jtime/pi/bin 743>python
> > > Python 1.5.2 (#1, Oct  2 1999, 23:28:23)  [GCC egcs-2.91.66
> 19990314/Linux
> > > (egcs- on linux2
> > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > > >>> import time
> > > >>> import wtdate
> > > >>> wtdate.today()
> > > Thu 14 Oct 1999
> > > >>> time.localtime(time.time())
> > > (1999, 10, 14, 11, 2, 51, 3, 287, 1)
> > > >>> time.time()
> > > 939916983.851
> > > >>> time.gmtime(time.time())
> > > (1999, 10, 14, 16, 7, 10, 3, 287, 0)
> > > >>> time.tzname
> > > ('CST', 'CDT')
> > > >>> time.timezone
> > > 21600
> > >
> > >
> > >
> > > __________________________________________________________________
> > > Web-Based Project Management and TimeSheet Software    JournyxTime
> > > FREE at http://journyx.com/wts.html
> > > John Maddalozzo  - john@JOURNYX.com  (512)834-8888 / (800)755-9878
> > > ------------------------------------------------------------------
> > >
> > > 	On Thu, 14 Oct 1999, Stappert, Andreas wrote:
> > >
> > > > Hello there,
> > > > We are still having a major problem with the Journyx installation on
> our
> > > > Linux server:
> > > > The current date on the Linux machine is
> > > > 	Mit Okt 13 10:35:14 CEST 1999
> > > > but Journyx uses the below July 12, 1995 as current date. Is there any
> > way
> > > > to correct this problem?
> > > > We would like to go and find some more customers for Journyx but if we
> > can
> > > > not figure out how to correct this problem, we will not be able to
> > > > demonstrate it.
> > > > Thanks for your immediate attention
> > > > Andreas
> > > >
> > > > License Key Data
> > > > *	Dates
> > > > *	Install Date: Mon Okt 4 17:36:04 CEST 1999
> > > > *	Product Expiration Date: Never
> > > > *	Current Date: Wed 12 Jul 1995
> > > > *	Users
> > > > *	Licensed Number of Users: 10
> > > > *	Current Number of User Data Unavailable
> > > > *	Hosts
> > > > *	Licensed Host: 192
> > > > *	Current Host: 192
> > > > Operating System Information
> > > > *	Current: Linux 192.168.0.100 2.2.5-15de #1 Tue May 25 00:43:15 EDT
> > > > 1999 i486
> > > > *	Original: Linux karsrv01.key-work.de 2.2.5-15de #1 Tue May 25
> > > > 00:43:15 EDT 1999 i486 unknown
> > > > Credits
> > > > *	Docs: Sarah Griswold
> > > > *	Testing: Matt Neiman
> > > > *	Coding:
> > > > *	Chris Anderson
> > > > *	Curt Finch
> > > > *	John Maddalozzo
> > > > *	Andrew Reutter
> > > > *	Design and enhancement ideas: literally thousands of registered
> > > > users just like you. <http://journyx.com/featureq.html>
> > > >
> > > >
> > > >
> > > > -----------------------------------------------
> > > > Andreas Stappert
> > > > Key-Work Consulting GmbH
> > > >
> > > > Haid-und-Neu-Strasse 7 - 76131 Karlsruhe - Germany
> > > > +49 721 664936-0 - mailto:andreas.stappert@key-work.de
> > > >
> > > >
> > >
> >
> 
> 



====================================================================
Audit trail:
Mon Oct 18 17:53:07 1999	guido	changed notes
Mon Oct 18 17:53:07 1999	guido	changed notification
Mon Oct 18 17:53:08 1999	guido	moved from incoming to open
Tue Oct 19 00:42:35 1999	guido	changed notes
Tue Oct 19 00:42:37 1999	guido	moved from open to irreproducible

Follow-Ups:

Date: 2000-Aug-01 14:37
By: none

Comment:
Can't reproduce this here.
Your best bet is to look into the conversion of the time() value
to floating point -- maybe you are using a bogus floating point
emulation?

BTW, forwarding such a long thread of email without a clear summary of
the problem at the top makes it hard for me to read the bug report.

-------------------------------------------------------

Date: 2000-Sep-07 15:04
By: jhylton

Comment:
Please do triage on this bug.
-------------------------------------------------------

Date: 2000-Sep-13 04:09
By: gvanrossum

Comment:
Irreproducible.

If this is still a problem in Python 2.0(b1), please submit a new bug report with enough information to be able to reproduce the bug.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110854&group_id=5470