Code

time should default to local midnight, not GMT