Hi All,
I'm getting to a point with my app where I'm about to try to roll out utc support.
I've already got it all working and have written myself two utility classes, called convertToUtc and convertFromUtc. I think you can guess what they do.
What I was thinking though, could I build these into the getter and setter methods for my date property on the linq-to-sql created object model, or should I just go round the app everywhere re assigning how the value is saved (adding an extra line to the controller like
task.taskDeadline = Utility.ConvertToUtc(aspnet_Repository.GetUserGuid(User.Identity.Name), task.taskDeadline.Value);
If anyone can tell me I'm doing something horrible by going back to the db each time I need the user Guid, that would be cool. I guess down the line somewhere I would cache it, but this would require holding it in session or something I presume.
Thanks all.