u call that spooky... try subtracting two dates and display them using the getter functions in Date for hours, minutes, seconds... i did that for my app, n got some really weird results... got no answers man!
On Thu, Jun 4, 2009 at 5:04 PM, twan <twa...@gmail.com> wrote: > > Good morning, > > I'm a bit confusing on how android handles dates. > > On tomcat: > log.debug(new SimpleDateFormat("HH:mm").format(new Date > (1244113800000l))); > results in: 13:10 > > On android: > Log.d(TAG, new SimpleDateFormat("HH:mm").format(new Date > (1244113800000l))); > results in: 11:10 > > The tomcat result is the right one. > > Is androids Date class doing something spooky with the timezone. (my > default timezone on emulator says GMT+00:00) > > Thanks, > Twan > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---