Fix deprecation warning

Replace date with calendar