I have an app that has many references to a comparison function in my
DateUtilities to see if two dates are on the same day. Unfortunately, the
logical approach is used a couple hundred times in my application. Now I see
that in unusual circumstances a user may want to count an event that starts
at midnight of some day as an event that happens on the physical previous
day. So, for instance, they may have games at 9PM, 10PM, 11PM, and 12PM. But
my baked-in logic would always say that 12PM is the next day.

The only approach I can think of is to temporarily fool the program into
thinking the UTC offset is different by 1 hour then return it to the usual
offset once evaluation of same day events is completed.

Any suggestions on how to temporarily change the perceived offset? I know
that ActionScript has a timeZoneOffset but that's read only. My attempts so
far have failed.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply via email to