Added automatic timezone detection