1. We plan to roll out a major software update (XenForo 2.1) to the forum within the next 24h. If you post a thread or answer to an existing thread it may not get ported so please keep that in mind. New member registrations won't be possible until we finally switched.
    Dismiss Notice

Time format taken from wrong reg key

Discussion in ' RC3 and SVN Builds' started by iSP, October 26, 2007.

  1. iSP

    iSP Portal Pro

    January 2, 2007
    Likes Received:
    +11 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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: 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:
    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
    Power Supply:
    Remote: Custom Aluminium MCE remote
    TV - HTPC Connection:
  2. Google AdSense Guest Advertisement

    to hide all adverts.
  3. piba
    • Premium Supporter

    piba Retired Team Member

    October 26, 2006
    Likes Received:
    +5 / 0
    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 Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.


  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!