Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Date and time conversion  RSS feed

 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of my pages has the following field for entering time:


game.gameTime is mapped onto a variable of type

I have a logging statement in the method that just prints out the date as :



However ,when testing I'm getting times that are 2 hours ahead of the entered time of eg if I enter 06:30 then what gets printed(logged) is :
Setting game time to 8:30


What am I missing ?
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still battling to figure out whats causing this.Any ideas?
 
Tammy Easterby
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's probably not your code at all. Whatever IDE you're using, you probably need to import a Daylight Saving Time Update for that IDE.
 
Tammy Easterby
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also check to see what time zone the IDE thinks it's using.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!