Time format taken from wrong reg key (1 Viewer)

iSP

Portal Pro
January 2, 2007
90
11
Home Country
Netherlands Netherlands
Well I had some trouble getting the right time format on my installation, and so several other people, and never was a solution found.
Today I got passed some reg dump of the HKEY_CURRENT_USER\Control Panel\International and after some testing I found the cause:

The time actually gets taken from the Locale key, which is also used to determine the language displayed inside mp.
In my case the value was 00000409 somehow instead of 00000413, and so I would get the AM/PM format.
But it shouldn't look there to get the time in the first place, it should get the time format from the sTimeFormat key.

Thanx piba for the reg dump :)



TV-Server Version:
MediaPortal Version: 0.2.3.0 RC3
MediaPortal Skin: FooFaraw
Windows Version: Windows XP MCE SP2 NL
CPU Type: 3800 X2 SFF EE
HDD: Samsung 500gb
Memory: 2gb
Motherboard: Abit AN-M2HD
Motherboard Chipset: Nvidia NF630a
Motherboard Bios: 15
Video Card: Nvidia Geforce7050
Video Card Driver: 7.15.10.9734
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card: FloppyDTV DVB-C
1. TV Card Type: DVB-C
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case: Custom
Cooling:
Power Supply:
Remote: Custom Aluminium MCE remote
TV:
TV - HTPC Connection:
 

piba

Retired Team Member
  • Premium Supporter
  • October 26, 2006
    70
    5
    Home Country
    Netherlands Netherlands
    Not a registry setting thing.. but if you can compile MP then please try the following

    check the function protected string GetTime() in MediaPortal.cs and change the code to this then report if it works(for main screens at least..)

    string strTime = cur.ToString(CultureInfo.CurrentCulture.DateTimeFormat.LongTimePattern) ;
     

    Users who are viewing this thread

    Top Bottom