Ticket #117 (closed Defect: Software changed)
Time in logfiles is wrong
| Reported by: | cdaboo@… | Owned by: | cdaboo@… |
|---|---|---|---|
| Priority: | 2: Expected | Milestone: | CalendarServer-1.0 |
| Component: | Calendar Server | Severity: | Other |
| Keywords: | Cc: |
Description
The timestamp in the log files is one hour off. It looks like it thinks that DST is still in effect.
twisted.web2.log.py has this:
if not time.daylight:
tz = <<non-dst>>
else:
tz = <<dst>>
However the definition for time.daylight says its value merely indicates whether the current timezone supports DST, not whether DST is actually in effect right now. Instead the dst value from time.localtime() should be used to determine the proper offset.
Change History
Note: See
TracTickets for help on using
tickets.
