Modify ↓
Opened 18 years ago
Closed 18 years ago
#6455 closed defect (worksforme)
Bug viewing tickets opened 1970-01-01 00:00
| Reported by: | 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)
Note:
See TracTickets
for help on using tickets.



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.