Added timezone handling to date-related functions.