A***@yahoo.com
2008-01-18 12:44:50 UTC
Ok, the problem is this; I am using a pair of CDateTimeCtrls one for
the date and one for hours/minutes/seconds. The problem I have is that
I need to work in UTC - all my internal calculations are using time_t
and the times shown to and selected by the user must be in UTC. I'm
getting into problems as the controls adjust for local time which I
don't want. I think I need to detect if an offset from UTC is in
effect and add/subtract that ammout when setting / reading from the
controls.
This is getting a bit ugly - can anyone think of a more elegant
solution?
Regards
Allan
the date and one for hours/minutes/seconds. The problem I have is that
I need to work in UTC - all my internal calculations are using time_t
and the times shown to and selected by the user must be in UTC. I'm
getting into problems as the controls adjust for local time which I
don't want. I think I need to detect if an offset from UTC is in
effect and add/subtract that ammout when setting / reading from the
controls.
This is getting a bit ugly - can anyone think of a more elegant
solution?
Regards
Allan