Fixed a bug where the date button was sometimes showing one date larger than it should.