[Mono-list] Troubling passing DateTime via embedded API
aaron.oneal at spicypixel.com
Thu Jul 25 17:40:29 UTC 2013
Can you share a code snippet? Are you using mono_object_to_string to retrieve the string value for display?
On Jul 25, 2013, at 6:00 AM, "jonathan at mugginsoft.com" <jonathan at mugginsoft.com> wrote:
> I am trying to get and set a System.DateTime property via the embedded API.
> I can retrieve a default DateTime from my cs model via the embedded API however I am having trouble with the setter.
> I create a System.Data instance using the runtime API by calling the ticks constructor DateTime(long).
> If I query the constructed C object's Ticks property it looks okay.
> The setter invocation completes without issue.
> However, when I requery the date property it always returns a value close to the reference date.
> $1 = 0x0015f0b0 0001-01-01 00:00:03 +0000
> I am missing something with regard to the nature of DateTime?
> I am able to set other non DateTime properties without trouble.
More information about the Mono-list