Re: Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 1 May 2007 10:50:26 -0700
Until someone decides that there needs to be an RFC sort of standard...
Paul T.
"Greg Hellem" <ghellem@xxxxxxxxxxx> wrote in message
news:133euoeaomvad9f@xxxxxxxxxxxxxxxxxxxxx
I was assumming that would be the reply I'd get.
Thanks,
Greg Hellem
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23GQYaVBjHHA.3700@xxxxxxxxxxxxxxxxxxxxxxx
The naming of zones is never going to be standardized. Use the offset
from GMT and the daylight saving time flag to decide what zone is
actually in use. For offsets where there are more than one possible
target zone, you'll have to figure out some sort of a way to map one to
the other (a table of zone mappings evaluated and approved by a real
person, for example). You could ask the user to pick from a list, or you
could map every zone manually and put the result somewhere that your code
can get to it.
Paul T.
"Greg Hellem" <ghellem@xxxxxxxxxxx> wrote in message
news:133et75saggs507@xxxxxxxxxxxxxxxxxxxxx
I work for a company that is heavily involved in Supply Chain Management
and our main web-based server-side product is written completely in Java.
Our customers use Symbol (now Motorola) WinCE 5.0 Mobile Devices for data
collection purposes within their warehouses and forward the data in a
batch mode through the Internet to our web servers. Customers have
requested that we create a mechanism whereby the mobile device will
synchronize the date, time and appropriate time zone with our web server
every time collected data is transmitted to the host machine. This means
that our customers can define, using our Java web-based server
application, the Time Zone that they are currently in and whether or not
to use Daylight Saving Time. The mobile application (written in VB .NET
2.0) can then issue a SOAP Request to retrieve the date, time and time
zone of where the mobile device is currently located. Well, I've run into
a brick-wall in the sense that the time zones (Display Name, Standard
Name and Daylight Name) do not always match the time zone information
provided in the Registry on a WinCE device!!
I'm looking for any known conversion methods whereby we can somehow
remap the time zones used by Java and the time zones used on a WinCE 5.0
device. Meaning, if a user selects a Time Zone of "America/Guayaquil"
from the UI on our web-based server application then it will respond to
the mobile application's SOAP Request with the TimeZoneID of
"America/Guayaquil" and the DisplayName of "Ecuador Time". Neither of
these strings exist in the Registry on a WinCE 5.0 Mobile Device!! I
could certainly use the UTC Offset provided in the SOAP Response to find
a valid entry but that leads to setting the wrong text of the current
time zone. We are using the Java TimeZone class with
TimeZone.getAvailableIDs and TimeZone.getDisplayName methods on the
server-side to respond to the SOAP Request from the mobile application.
So, does anyone have any ideas on how to map Java Time Zone data with
the Time Zone data found in the Registry on a WinCE 5.0 Mobile Device?
Thank you for any assistance you might provide,
Greg Hellem (ghellem@xxxxxxxxxxxxxx)
.
- References:
- Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- From: Greg Hellem
- Re: Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- From: Paul G. Tobey [eMVP]
- Re: Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- From: Greg Hellem
- Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- Prev by Date: Re: Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- Next by Date: Re: Input focus
- Previous by thread: Re: Mapping Java Time Zone data to Microsoft (WinCE 5.0) Time Zones.
- Next by thread: Re: Input focus
- Index(es):
Relevant Pages
|
Loading