Skip to content

Commit a2537ae

Browse files
committed
change test to use UTC date
1 parent 0a1ea4a commit a2537ae

File tree

2 files changed

+74
-14
lines changed

2 files changed

+74
-14
lines changed

src/AndroidClient/client/.idea/workspace.xml

Lines changed: 72 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AndroidClient/client/src/test/java/net/servicestack/client/tests/JsonTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public void test_Does_deserialize_TimeSpan(){
4747
public void test_Does_serialize_DateTime_in_QueryString() throws UnsupportedEncodingException {
4848
JsonServiceClient client = new JsonServiceClient("http://test.servicestack.net");
4949
testDateDtos.HelloDateTime request = new testDateDtos.HelloDateTime()
50-
.setDateTime(Utils.parseDate("2001-01-01T01:01:01"));
50+
.setDateTime(Utils.parseDate("2001-01-01T01:01:01Z"));
5151

5252
String url = client.createUrl(request);
5353

54-
assertEquals("http://test.servicestack.net/json/reply/HelloDateTime?dateTime=" + URLEncoder.encode("/Date(978339661000-0000)/", "UTF-8"), url);
54+
assertEquals("http://test.servicestack.net/json/reply/HelloDateTime?dateTime=" + URLEncoder.encode("/Date(978310861000-0000)/", "UTF-8"), url);
5555
}
5656

5757
public void test_Can_get_time_components(){

0 commit comments

Comments
 (0)