Issue 43 in jayrock: DateTime String Convertion Error

0 views
Skip to first unread message

jay...@googlecode.com

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

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

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

Reply all
Reply to author
Forward
0 new messages