Code

Add timezone support and fix checks around cert expiration