Allow localtime to be configurable.

Signed-off-by: crynobone <crynobone@gmail.com>