Notices

Applications and Utilities Talk about apps and utilities for Windows Mobile and PPC

Reply
 
LinkBack Thread Tools
Old 09-10-07, 08:20 PM   #1 (permalink)
Aximsite Minor League
 
Join Date: Sep 2006
Location: New Zealand, Auckland
Posts: 172
Device: Samsung BlackJack
Carrier: Vodafone NZ
Thanked 0 Times in 0 Posts
Time Zone editor for Windows Mobile

I’ve written the small application TimeZoneEditor which allows to change time zone settings on Pocket PC and create new time zone.
I’ve tested it on Pocket PC 2003 QVGA (HP iPaq 4150 and 4350), Pocket PC Phone 2003 SE Square Screen (HP iPaq 6515), Pocket PC WM5 VGA (Dell Axim x51v) and unlocked WM5 SmartPhone (BlackJack).
It is just one executable file, doesn’t require any additional dll’s or Compact Framework.
The program can be just copied on device (or storage card) and run.
When you run the program it shows the current time zone and you can edit it.
To save changes use “Action”->”Set Current” menu. The changes are written to registry in 2 places:
1. HKLM\Time – TimeZoneInformation key . This is current time zone settings
2. HKLM\Software\Microsoft\TimeZones\<TZ index> TZI key. This is update information. The original settings are stored in citydb.dll. If this registry key exists tz information will be read from this registry key.

Program also allows to install or remove Microsoft patches (2007 DST changes).
Use Action->Updates menu.

And finally you can create new TimeZone:
Here you have to specify:
Standard Time name
GMT offset in minutes
Standard time settings: when standard time starts – For example, 1-st Sunday of October at 2 hours 30 minutes.
Daylight Time settings – when DST starts.
BIAS – normally it is -60 minutes (-1 hour).
Display Name: name how it will be displayed in Windows Clock Settings. For example: “GMT+12 Some City, Another City”
Microsoft Time Zone Index – index used by Citydb.dll. For example, Pacific has index 4, Mexico -5, New Zealand – 290. There is a gap in used indexes. You can use any unused index. For example 6 is unused index. The index list can be found here:
Microsoft Time Zone Index Values
Attached Images:
File Type: jpg Screen003.jpg (23.3 KB, 177 views)
File Type: jpg Screen001.jpg (28.3 KB, 155 views)
File Type: jpg Screen002.jpg (32.0 KB, 135 views)
Attached Files:
File Type: zip TimeZoneEditor.zip (89.6 KB, 414 views)

Last edited by Galina; 10-18-07 at 06:31 PM.
Galina is offline   Reply With Quote
Sponsor Ads
Old 05-05-09, 06:47 AM   #2 (permalink)
Aximsite Prospect
 
Join Date: May 2009
Posts: 1
Thanked 0 Times in 0 Posts
Hi, I am developing an app in which I have to detect the time zone settings as chosen by the user on Windows Mobile.
I checked the timezone subkey in HKEY_LOCAL_MACHINE using registry editor but I am unable to locate the time zone information.Is there any other location where I could get the time zone information.
Thanks in Advance!!
SKalra is offline   Reply With Quote
Old 05-06-09, 06:19 AM   #3 (permalink)
Aximsite Minor League
 
Join Date: Sep 2006
Location: New Zealand, Auckland
Posts: 172
Device: Samsung BlackJack
Carrier: Vodafone NZ
Thanked 0 Times in 0 Posts
Hi there,
To get currently used time zone you can use function GetTimeZoneInformation()

Here is what you need:
// Include this one for GetTimeZoneInformation() and TIME_ZONE_INFORMATION structure definition
#include <winbase.h>

// Use it like this:
TIME_ZONE_INFORMATION m_tzInfo;
DWORD result = GetTimeZoneInformation(&m_tzInfo);
CString m_STDName = m_tzInfo.StandardName;


I can send you source code for my program if you like.
Let me know if you have any questions.
Galina is offline   Reply With Quote
Reply

Tags
editor, mobile, time, windows, zone

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:00 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC