toupper and timezone workaround