Fixed bugs around sample not compiling and "wrong element type" which was caused by not handling timezones properly

- Updated readme so that it is not using obsolete parameters
- Updated datetime string format so that it uses timezone too as it was
raising "expired request" errors due to the timezone deprecation