0

is it possible to get the browser time?

Because the server runs in ireland so that everyone gets the ireland time when i use<%= Time.now%>.

The user should see his time.

user2211703
  • 489
  • 2
  • 5
  • 14
  • see http://stackoverflow.com/a/3793698/2128691 – dax Nov 04 '13 at 10:13
  • possible duplicate of [Display local time in view](http://stackoverflow.com/questions/3793324/display-local-time-in-view) – Sigurd Nov 04 '13 at 10:15
  • the anwser in the about links says, that you have to set Time.zone. But i dont know where the user comes from. One can be from usa and from china. The user's timezone should be automatic determined – user2211703 Nov 04 '13 at 10:38
  • 1
    Why not use JavaScript on the client side to display time instead? http://stackoverflow.com/questions/1837183/displaying-date-time-in-users-timezone-on-client-side – bigtunacan Nov 04 '13 at 14:35

0 Answers0