Hi there,
Sorry to bother you all again.
It's really wired. I have changed time_zone in nav.conf and all time is correct on the front page.
But only the Service state alert's start time and end time is showing in UTC timezone.
I went through database and confirmed those time was recorded by UTC timezone, as below:
SQL: select * from manage.alerthist
As you can see, the other’s alert in thresholdState is correct.
I also looked into python code,
In python/nav/models/event.py
class AlertQueue(models.Model, EventMixIn):
time = models.DateTimeField()
class AlertHistory(models.Model, EventMixIn):
start_time = models.DateTimeField()
I changed those code to models.DateTimeField(default=dt.datetime.now), but still got same issue.
I was just wondering has anyone run into the same problem?
Cheers.
Bruce