Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 1
Registered: ‎01-12-2009
My Device: Not Specified

Any way to return timezone information in request?

Hi,

 

I am writing a web application for the mobile users in our company.  The web application returns availiblity information on a person searched for.  The server returns the time as EST.  Is there any way to get in indication from the black berry browser as to what timezone it is in???

 

Thanks in advance for any help or advice given.

 

aphenner

BlackBerry Development Advisor
Posts: 15,016
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Any way to return timezone information in request?

Not directly, but you could create a Date object in JavaScript and call the toUTCString() method to get the local time in a UTC string.  You could then compare this to the date you know is in the eastern time zone.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker