Datequery timezone fixes for bug #542