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

Regarding Timezone  RSS feed

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all genius people,

I am bit confused regarding timezone for different countries.

The question is....

If I write a code to fetch timezone in .jsp page or servlet which timezone it will give?
I think it will give the timezone of server not that of the country from where jsp page is being accessed.

Am i right? Please correct me.
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to another forum as not a "beginning" question.
 
manoj r patil
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right Hardik.

But then if you want to get client machine's timezone, you can always sent this info back to server using java script. Some googling would give you the examples with this approach.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!