Not sure if this helps, but it's easy enough to do from within the Palm -
see the comments under the TimTimeZoneToUTC Function in PalmOS Reference.
I'm assuming you have an app installed on the Palm, you could incorporate
code in your app to perform this function and define a custom applaunch code
that your conduit invokes to run the appropriate routines. Just a Thought,
YMMV. (I haven't written a conduit in a while, though I need to before the
end of the month for my latest app - wish me luck!)
Regards, Randyp


  > -----Original Message-----
  > From: [EMAIL PROTECTED] [mailto:bounce-palm-
  > [EMAIL PROTECTED] On Behalf Of Mike Margerum
  > Sent: Thursday, April 08, 2004 4:34 PM
  > To: Palm Developer Forum
  > Subject: Syncing a handhelds time
  > 
  > I realize this is a conduit question but there doesn't seem to be much
  > activity over there and i'm getting desperate for an answer.  I'm trying
  > to synchronize the palms time with the pc if they differ by more than 10
  > minutes.  im using the SyncReadDateTime and SyncWriteDateTime which seem
  > to be a bit buggy with regards to daylight savings time.  So I allow 70
  > minutes difference now before setting the palms time which is fine.  it
  > doesnt have to be perfect.
  > 
  > The other problem im having is when the handheld and pc have different
  > time zones.
  > 
  > 
  > 1. is there any way for me to tell if the palm and pc are running with
  > two different times zones?
  > 
  > 
  > 2. How do I get the times to both match so I can compare them properly
  > and how should I then prepare the pc time_t to be written to the palm
  > date time if I need to change the palm time.   Is the palms  dateTime
  > always in UTC?
  > 
  > I tried using
  >         putenv("TZ=UTC");
  >         tzset();
  > but then the time I write back to the palm gets set to UTC but the time
  > zone  stays "eastern"
  > 
  > Thanks for the help,
  > Mike
  > 
  > 
  > 
  > 
  > 
  > --
  > For information on using the Palm Developer Forums, or to unsubscribe,
  > please see http://www.palmos.com/dev/support/forums/


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to