Skip to main content
Home Forums Silverlight Programming WCF RIA Services DateTime serialization problem
4 replies. Latest Post by clement_911 on November 9, 2009.
(0)
clement_911
Member
4 points
25 Posts
11-06-2009 9:19 PM |
Hi Ria Services expert.
I noticed that when my silverlight client calls a Get domain service method with a DateTime argument, the DateTime.Milliseconds field is lost (resetted to zero). Also the DateTime.Kind is resetted to Unknown whereas it was Utc when the client called.
Is that a known issue
sladapter
All-Star
17441 points
3,172 Posts
11-06-2009 10:53 PM |
No, I just tested in my code. The .Milliseconds and .Kind in Silverlight side have the correct value as in the Server side.
Oh, do you mean to pass the DateTime value back to server? I only tested passing data from Server to Client.
11-06-2009 11:38 PM |
Yes I mean from client to server.
11-07-2009 11:08 AM |
Yes, I can confirm your finding. The Date value passed as query function parameter lost milliseconds and kind value on the server side. But Date value in the data Entity holds the correct value in both ways.
11-09-2009 12:53 AM |
Thanks.
I hope someone from the RIA services team acknowledges the problem so that it gets fixed.