Customize timestamp Entlib database logging RRS feed

  • Question

  • User1212688708 posted

    Hi all,

    We are using Ent lib 3.1 to log some data. When we write our data to the database we see that the timestamp is 2 hours earlier then our local time. I mean the timestamp in the column timestamp and not the formattedmessage. Is there a way to change the timestamp to local time?

     Thanks in advance!!


    Wednesday, September 24, 2008 3:12 AM

All replies

  • User1212688708 posted

    Hi all,

    Well i fixed my problem and now i took a closer look it's all good. The time which was logged to the database was UTC format. This is even better then i thought. The code which will present the time will convert it to local time so the time will be just the way our customer is expecting it. I was looking on the wrong peace of code to fix my problem :)


    Monday, September 29, 2008 7:49 AM