Opscenter Report is not showing times with Daylight savings
I have generated a report in opscener using sql to generate a report and it gets the start time and end time off by 1 hour. The time would be correct if we weren't in daylight savings right now and it will be over in a week or so. I do have the user settings set to Canada Mountain and still wont correct the times. Any ideas to correct the time without changing the timeszone settings to an incorrect setting?
--this sql statement gets the client, start time, end tiem, schedule type, status and how long it took in hours
select
domain_JobArchive.clientName as "Client",
UTCBigIntToNomTime(domain_JobArchive.startTime) as "Start Time",
UTCBigIntToNomTime(domain_JobArchive.endTime) as "End Time",
lookup_ScheduleType.name as "Schedule Type",
lookup_JobStatusCode.id as "Status",
( sum (NOM_DateDiff(domain_JobArchive.startTime, domain_JobArchive.endTime)) / (60*60) ) as "Duration in Hours"
from
domain_JobArchive,
lookup_ScheduleType,
lookup_JobStatusCode
where ( ( (domain_JobArchive.id = domain_JobArchive.parentJobId)
OR (domain_JobArchive.parentJobId = 0) ) AND (domain_JobArchive.isValid = '1') )
and (domain_JobArchive.clientName SIMILAR TO 'client')
and (DATEDIFF(hour,UTCBigIntToNomTime(domain_JobArchive.endTime), GETDATE()) <=(24*14))
and (domain_JobArchive.scheduleType = lookup_ScheduleType.id)
and (domain_JobArchive.statusCode = lookup_JobStatusCode.id)
group by
domain_JobArchive.startTime,
domain_JobArchive.endTime,
lookup_ScheduleType.name,
lookup_JobStatusCode.id,
domain_JobArchive.clientName
order by domain_JobArchive.startTime desc
I've seen this happen a lot in Java based applications that use their own version of Java rather than the globally installed one. Java has an internal "when does the time change" table and the internal version may be old enough to not have the correct dates for the changes.
Even if you have no plans to update your NetBackup, you can always run the latest OpsCenter and have it talk to the earlier NetBackup versions on your Masters. That doesn't fix everything but would get you a newer version of internal Java.