showlog: Use localtime() instead of gmtime()
commitf9dab7ea8c19d1b5b79edc50c75535f2e67d4b08
authorAndreas Ericsson <ae@op5.se>
Thu, 17 Jun 2010 15:28:13 +0000 (17 17:28 +0200)
committerAndreas Ericsson <ae@op5.se>
Thu, 17 Jun 2010 15:33:13 +0000 (17 17:33 +0200)
tree623ad67c64078e69f638c59fb72fe01e36a816a9
parent6da2e90880801e80b54683cc473c7c512a22a9d2
showlog: Use localtime() instead of gmtime()

From the gmtime manpage:
  The gmtime()  function converts the calendar time timep to broken-
  down time representation, expressed in Coordinated Universal Time
  (UTC).

  The localtime() function converts the calendar time timep to
  broken-down time representation, expressed relative to the user’s
  specified timezone.

Since the local timezone is what we want, we should be using
localtime(), which also allows us to get rid of the isdst check
(which never triggered, since gmtime() doesn't set that field).

This fixes issue #3525.

Signed-off-by: Andreas Ericsson <ae@op5.se>
showlog.c