changed date() to gmdate()