Click here to get back home

Set Time Zone Question

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Set Time Zone Question Vin 05-21-2007
Get Chitika Premium
Posted by Vin on May 21, 2007, 5:51 pm
Please log in for more thread options
Hi,

I am writing a program trying to set the time and time zone using Embedded
Visual C++ 4.0.

After I applied the time patch last march, I have been unable to set the
correct time for Pacific time zone because for Pacific, the patch added a new
time zone similar to Pacific.

For Pacific the patch added: GMT-8 Tijuana, Baja California

But Pacific on the device is also: GMT-8 Pacific US

So, when the program tries to set the time zone to Pacific, it will select
Tijuana.

So, how can I fix this? Please help me. Many Thanks!

Here is my code:

TIME_ZONE_INFORMATION tzNew = {8 * 60, L"PDT Pacific US"
,0,L"PDT Daylight Saving",,-1 * 60};

SetTimeZoneInformation(&tzNew);

SYSTEMTIME UTCTime;
UTCTime.wYear = 2007;
UTCTime.wMonth = 05;
UTCTime.wDay = 21;
UTCTime.wHour = 4;
UTCTime.wMinute = 49;
UTCTime.wMilliseconds = 0;

SetSystemTime(&UTCTime);

Similar ThreadsPosted
time September 15, 2005, 12:00 am
Network Time December 8, 2005, 11:29 pm
ActiveSync time May 10, 2006, 3:13 am
Application does not start for the second time December 1, 2005, 5:02 pm
What's the best way to solicit a Time value from the user? December 8, 2005, 9:41 pm
set date and time on Pocket PC February 3, 2006, 3:29 pm
Great time in France June 7, 2006, 10:31 am
Last modified time of a contact June 13, 2008, 4:12 pm
How to reduce make image time? August 3, 2005, 7:28 pm
MSDN vs. eVC4 wizard, who's right this time? January 23, 2006, 12:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap