Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#6455 closed defect (worksforme)

Bug viewing tickets opened 1970-01-01 00:00

Reported by: auno+trac@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.10.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When viewing tickets with time=0 (i.e. opened 1970-01-01 00:00), it always say that the ticket was opened 0 seconds ago.

Attachments (0)

Change History (1)

comment:1 by osimons, 16 years ago

Resolution: worksforme
Status: newclosed

I see why this happens, and basically it is because time related methods say that if you don't have a timestamp then use current time - ie now(). A timestamp of 0 (zero) will mean no timestamp in all these comparisons.

Now, why you have tickets opened on time=0 is beyond me. And, I can't think that you manage to create them like that using the Trac interface using a correctly configured server? If you really, really need it then at least use time=1 (1 second later) to get a valid time from back when the dinosaurs roamed.

I don't foresee changing the code to support ticket creation at epoch, so to me this behavior is all correct.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.