This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes getting wrong time from recieved message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "getting wrong time from recieved message" Watch "getting wrong time from recieved message" New topic
Author

getting wrong time from recieved message

prajapati ajay
Greenhorn

Joined: Dec 16, 2008
Posts: 12
hi

when i am sending message from my j2me application.it is showing wrong time in received message details
it is showing correct date but time is 6 hrs before.

please help me to solve this prblm

thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

Check the clock and timezone settings on the device.

Also make sure you know which timezone you're working with. A UTC time display would be about 6 hours off US Mountain Standard Time.


Customer surveys are for companies who didn't pay proper attention to begin with.
prajapati ajay
Greenhorn

Joined: Dec 16, 2008
Posts: 12
hi frnd i solve this problem
first i get current date in date variable
then
i use this code
date.setTime(date.getTime()+20000000);
it will gives current dae and time

thaks to all for your reply
prajapati ajay
Greenhorn

Joined: Dec 16, 2008
Posts: 12
hi frnd
i solve this problem
first i get current date in date variable
then
i write this code
************************************
date.setTime(date.getTime()+20000000);
*************************************
it will gives current dae and time

thanks to all for your reply
 
wood burning stoves
 
subject: getting wrong time from recieved message
 
Similar Threads
Changing the time zone on java application which is running on the app. server
Page directive attribute
Difficulties while converting from long to time format
jsp only run correctly once
Help with running my first program.