I have two custom fields, of type "date" and "time of day", respectively, which I am populating with a date and time representing our users last login at our website.
When I update the "Time" custom field with 23/09/2008 10:30AM, although this value is displayed in the NetSuite GUI correctly (as '10:30 am'), when I retrieve it through web services, the value is '1/01/1970 11:30:00AM' - an hour out.
I am using .Net 2.0 and C#.
Can anyone suggest a reason why this would be happening? BTW, I have checked and updated repeatedly, and I am definitely putting the correct value in the field.
DateTime buf = DateTime.Now; DateTime lastLoginTime = new DateTime(buf.Year, buf.Month, buf.Day, buf.Hour, buf.Minute, buf.Second, buf.Millisecond, DateTimeKind.Local);