changed date to gmdate