Changed 'date' calls to 'gmdate'.