Fix api timezone fatal error

get_timezone was called but such a function never existed, added it in to get the timezone from the WP options #4055