change gmdate to date to server