Project

General

Profile

Store WDateTimes, but display WLocalDateTimes in WQueryView?

Added by Roy Wiggins about 7 years ago

So, I have objects with date-times stored as WDateTimes. When they come back out of the database and are displayed in a query view, they are of course still DateTimes and so aren't locale-aware.

Is there a preferred way to fix this? I can probably do it by manually converting them into LocalDateTimes, then stringifying in a delegate and manually installing that delegate onto all the columns that are DateTimes, but if there's a better way...