ywuwgij / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Time values are incorrect in downloaded (CSV) log #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Make sure some of the presently logged errors have occured within the 
second of a day; that is, between midday and midnight.
2. Download the entire error log by pressing the "Download log" link on 
any page that lists the errors.
3. Open the downloaded log in a text editor or even Microsoft Excel.

What is the expected output? What do you see instead?

The values in the "Time" column should correspond to the same time (post 
time zone translations) as indicated on the page listing the errors. 
However, those errors that occured between midday and midnight will have 
the wrong time values.

More information:

- There were at least 53 errors in the log where this problem was 
observed. Haven't tried with fewer.
- The log implementation configured was AccessErrorLog.

Environment:

- ELMAH version: revision 290 of the source repository
- OS: Windows Vista Business Edition SP 1 (Build 6001)
- ASP.NET: version 3.5

Original issue reported on code.google.com by azizatif on 10 May 2008 at 11:49

GoogleCodeExporter commented 9 years ago
The problem is that the hour component of the time value is in 12 hour instead 
of 
the 24 hour format. The time value seems wrong because there is no time 
component 
emitted indicating AM or PM.

Original comment by azizatif on 10 May 2008 at 11:53

GoogleCodeExporter commented 9 years ago
Fixed in r291.

Original comment by azizatif on 10 May 2008 at 11:56