added timezone setting and fixed problems.