BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-15-2004, 12:05 AM   #1 (permalink)
New Member
 
Join Date: Oct 2004
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Time Zone issues

Please Login to Remove!

I am trying to change the time zone.
this is my code:
Code:
          Calendar c = Calendar.getInstancexxx40;xxx41;;
          c.setTimexxx40;new Datexxx40;System.currentTimeMillisxxx40;xxx41;xxx41;xxx41;;
          c.setTimeZonexxx40;TimeZone.getTimeZonexxx40;"Easter Time"xxx41;xxx41;;
          Device.setDateTimexxx40;c.getTimexxx40;xxx41;.getTimexxx40;xxx41;xxx41;;
nothing happen
please help!!

[Edit by Mark Rejhon: Added [code] tags to format source code]
Offline  
Old 10-15-2004, 12:13 AM   #2 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Did you try the string "EST" instead of "Easter Time"?

RIM is a high-security device and prevents unauthorized changes. So there might be the possibility that the device won't let you without getting the app signed (not sure).
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline  
Old 10-15-2004, 12:18 AM   #3 (permalink)
New Member
 
Join Date: Oct 2004
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried everything:
"GMT-5"
"GMT-5:00"
It does not change the time zone
May be I have to use CodeModuleManager to access net_rim_bb_options_app because the option app is doing the time zone change...
Offline  
Old 10-15-2004, 09:30 AM   #4 (permalink)
New Member
 
Join Date: Oct 2004
Location: NYC
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default time zone change

nangatrad,

u can listen to timezone changes that user would do in the option by calling Application.addGlobalEventListener(GlobalEventList ener listener)

and then implement the method eventOccurred(long guid, int data0, int data1, Object object0, Object object1) from the GlobalEventListener interface.

in the eventOccurred method, do a condition like the following
if( guid == DateTimeUtilities.GUID_TIMEZONE_CHANGED){
// do action here
}

hope that helps.
Offline  
Old 03-02-2007, 06:29 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Location: Münster, Germany
Model: 8700
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem. I changed the device time with the net.rim.device.api.system.Device class. But there is no function to set the timezone. Using the calendar class didn't work.

Does anybody found a solution for this?
Offline  
Old 03-02-2007, 12:27 PM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2006
Model: 8707g
Carrier: Hutch
Posts: 73
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If the device time is not changing - check if the device is set to use Network Time.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Snom 821 BlackCorded VoIP Phone
$14.5
Snom 821 BlackCorded VoIP Phone  picturePolycom CX3000 VoIP PoE Conference Phone for Microsoft Lync Untested As Is
$37.16
Polycom CX3000 VoIP PoE Conference Phone for Microsoft Lync Untested As Is pictureTalkSwitch 48 CVA PSTN & VoIP PBX + EXTRA CT.MC001.000601 2-Hour Memory Card
$349.0
TalkSwitch 48 CVA  PSTN & VoIP PBX + EXTRA CT.MC001.000601 2-Hour Memory Card pictureCisco SPA504G 4 Line VoIP Business Phone w/ Power Adapter, CD & Manaul
$48.45
Cisco SPA504G 4 Line VoIP Business Phone w/ Power Adapter, CD & Manaul pictureCISCO CP-7937-MIC-KIT FOR CISCO 7937G VOIP PHONE CP-7937-MIC-KIT New
$23.0
CISCO CP-7937-MIC-KIT FOR CISCO 7937G VOIP PHONE CP-7937-MIC-KIT New picture






Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.