Issue 44 in jayrock: DateTime String Convertion Error

2 views
Skip to first unread message

jay...@googlecode.com

unread,
Sep 6, 2011, 1:00:10 AM9/6/11
to jayrock...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 44 by jinqiang...@gmail.com: DateTime String Convertion Error
http://code.google.com/p/jayrock/issues/detail?id=44

What steps will reproduce the problem?
1.Copy and paste the following code.
2.Invoke getDT method and copy the result string.
3.Invoke setDT method using the result string in step 2.

public class DateTimeService : JsonRpcHandler
{

/**
* Example Output: "2011-09-05T23:30:00.0087726-0+:00"
* The output string is passed to setDT method.
*/
[JsonRpcMethod("getDT")]
public DateTime GetDateTime()
{
return DateTime.Now;
}

/**
* Test this method will fail if
* the input string has the trailing "-0+:00".
*/
[JsonRpcMethod("setDT")]
public DateTime SetDateTime(DateTime dt)
{
return dt;
}
}

What is the expected output? What do you see instead?
An window with error message appears when setDT method is invoked.

What version of the product are you using? On what operating system?
Version v0.9.12915. Window 7 64-bit.

Please provide any additional information below.
N/A

Attachments:
dateTime-string-conversion-error.png 6.4 KB

jay...@googlecode.com

unread,
Sep 21, 2011, 12:51:12 AM9/21/11
to jayrock...@googlegroups.com
Updates:
Labels: Component-JSON

Comment #1 on issue 44 by azizatif: DateTime String Convertion Error
http://code.google.com/p/jayrock/issues/detail?id=44

In what time zone are you operating the above code, especially the call to
DateTime.Now?


jay...@googlecode.com

unread,
Sep 21, 2011, 11:35:27 AM9/21/11
to jayrock...@googlegroups.com

Comment #2 on issue 44 by jinqiang...@gmail.com: DateTime String Convertion
Error
http://code.google.com/p/jayrock/issues/detail?id=44

(UTC-06:00) Central Time (US & Canada).

Jin

jay...@googlecode.com

unread,
Sep 21, 2011, 5:02:38 PM9/21/11
to jayrock...@googlegroups.com
Updates:
Status: Duplicate
Owner: azizatif
Mergedinto: 22

Comment #3 on issue 44 by azizatif: DateTime String Convertion Error
http://code.google.com/p/jayrock/issues/detail?id=44

This appear to be a duplicate of issue #22 that has already been fixed. You
can grab the latest developer build[1] (stable). Note that while the
assembly version has not changed, the *file version* of the latest build
has and is 0.9.13422.2206.

[1] ftp://ftp.berlios.de/pub/jayrock/

Reply all
Reply to author
Forward
0 new messages