Fix timezone issue, update code to coding standards.

Signed-off-by: Paul G <p.ganssle@gmail.com>