Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting wrong time from recieved message

 
prajapati ajay
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18008
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
prajapati ajay
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic