coldstar96 / cse403

Budget Manager Project
1 stars 2 forks source link

new Time() gets a date that is one day ahead #118

Open jiwpark90 opened 11 years ago

jiwpark90 commented 11 years ago

For some reason, if you get new Time() and do a setToNow(), it sets it to one day ahead.

brucec5 commented 11 years ago

Are you sure the time isn't either reported in UTC or your emulator's time is set to be tomorrow?

PushaKi commented 11 years ago

Not sure whether this answers the question directly, but running the application and comparing the default start date in the Add Budget DatePicker to the time and date used by the emulator (which looks to be UTC), the behavior seems right (the DatePicker is set to the emulator's current date).

jiwpark90 commented 11 years ago

I found out that it is using GMT. It'd be nice if we can set timezones depending on the user's location, but it shouldn't be too hard to do later on as a small fix.