fixed time.Time <-> Date conversions (fixes #10)