Changed get time to calendar class