replace Calendar by Time
bugfix for replace Calendar by Time