fix calendar time bug