Changes between Initial Version and Version 1 of Ticket #1942, comment 71
- Timestamp:
- Feb 9, 2012, 9:10:04 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1942, comment 71
initial v1 1 I tried https://bitbucket.org/psuter/trac-1942. The value of custom field has variable width depended on the timestamp. It's not easy to sort the field for a user.1 I tried https://bitbucket.org/psuter/trac-1942. The value of custom field has variable widths depended on the timestamp. It's not easy to sort the field for a user. 2 2 3 3 ||= Time =||= to_utimestamp =|| || … … 24 24 - return str(to_utimestamp(dt)) 25 25 + # Padding with '0' would be easy to sort in report page for a user 26 + fmt = '%018d' if ts >= 0 else '% -017d'26 + fmt = '%018d' if ts >= 0 else '%+017d' 27 27 + return fmt % ts 28 28 else: