strongloop / strong-remoting

Communicate between objects in servers, mobile apps, and other servers.
www.strongloop.com
Other
105 stars 93 forks source link

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

Closed bajtos closed 8 years ago

bajtos commented 8 years ago

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

richardpringle commented 8 years ago

LGTM