Trying to make times more compatible with JSON