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

NXP SEMICONDUCTORS BLF1043 UHF POWER LDMOS TRANSISTOR 5PCS
$78.0
NXP SEMICONDUCTORS BLF1043  UHF POWER LDMOS TRANSISTOR 5PCS picture12V DIY 12A 144W Electronic Semiconductor Refrigerator Radiator Double Head kit
$43.95
12V DIY 12A 144W Electronic Semiconductor Refrigerator Radiator Double Head kit pictureFAIRCHILD SEMICONDUCTOR 1N4001 DIODE STANDARD 1A 50V DO-41 (5 pieces)
$8.77
FAIRCHILD SEMICONDUCTOR 1N4001 DIODE STANDARD 1A 50V DO-41 (5 pieces) pictureNOS Motorola Semiconductors Cathode Bus 6R 1702 / PN: 1H23M
$179.99
NOS Motorola Semiconductors Cathode Bus 6R 1702 / PN: 1H23M   pictureAgilent HP 4155C Semiconductor Parameter Analyzer w/ 16442A
$19995.0
Agilent HP 4155C Semiconductor Parameter Analyzer w/ 16442A picture






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