minor changes to code, updated for revised api urls, corrected datetime for current timezone