Forums

Timezone in log files

Hi,

The time mentioned wrt each log entry in my webapp is different from the timezone of my city. Mine is approx 5:30 hours ahead of PA's timezone. Is there any way to tackle it because i need to track the user analytics from the log files and timezone difference is making things difficult?

I'm afraid that's not something we can customise on a per-user basis I'm afraid. Maybe you can adjust the timestamp when you're parsing the logfiles? datetime.strptime and datetime.timedleta from the standard library could help?