Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEMVER-MAJOR] Fix rest-coercion of timestamp strings #349

Merged
merged 1 commit into from Sep 13, 2016

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Sep 13, 2016

When converting a value coming from a string source like querystring to a date, and the value is a timestamp (i.e. an integer), we treat the value as a number now.

That way the value "0" always produces "1970-01-01T00:00:00.000Z" instead of some date around 1999/2000/2001 depending on server timezone.

Connect to #238

@Amir-61 @richardpringle please review
cc @STRML @ritch

When converting a value coming from a string source like querystring
to a date, and the value is a timestamp (i.e. an integer), we treat
the value as a number now.

That way the value "0" always produces "1970-01-01T00:00:00.000Z"
instead of some date around 1999/2000/2001 depending on server timezone.
@richardpringle
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants