This fixes #8125.  I was using date() where I needed to use gmdate().