Fixed bug where datetimes retrieved from the input fields were being treated as local datetimes rather than UTC datetimes.