Change to get the time in the time zone

Logging

Logging

Messing around

REmoved comments

More logging

Logging

Use beginning and end of day directly

  Fixed code

Use Time.zone.today

Force utc