• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Pim toSerialFormat writes the current time and date

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am writing an app that gets the PIM data from the phone and sends it to a server. To do this I use PIM.toSerialFormat() that will write data PIM entry to an output stream which I then send to the server. I then can retrieve the PIM data at a later late from the server and write it to the phone. This all works fine.
The problem is that when I get the PIM data from the todo list (and possibly the event list, I haven't checked) and write it to the output stream the date that was for the todo task changes to the current time and date of the phone. So therefore when I read the todo task back from the server it will have the wrong scheduled time.

For example;
I have a todo task scheduled to go off on the 20-9-07 at 20:00. When I send the todo task to the server the scheduled time changes to the time and date the device is currently at, say 13-9-07 14:53. So when I get the data back from the server and save the todo task on the device the time for the scheduled task is now 13-9-07 14:53

Has anyone noticed this? Is there a work around? I really hope this is not a bug in the PIM api. I think it is a serious one!
At the moment I think the only work round would be to read from the pim entry and not us toSerialFormat
 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tested on Nokia 6230i, 6131 and Sony Ericsson K750, W850. This problem only occurred on the Nokia devices.
 
Saloon Keeper
Posts: 23266
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Uh-oh. I'd check with Nokia Developer Support if I was you.
 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this also happens using the fromSerialFormat() method.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic