This week's book giveaways are in the Scala and Android forums. We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line! See this thread and this one for details.
I am a bit confused. I am trying to get the system time to display in a label on one of my applications. I created a GregorianCalendar object, and called method getTime(), but the time it returns is one hour earlier than what my PC clock is displaying. Can anyone help me understand why?
Does your location adjust for Daylight Savings Time? If so, this may be a part of the problem. you should check if the timezone used by your GregorianCalendar object is Standard or Daylight Savings Time.