Invalid DateTime when loading configuration tool (2 Viewers)

sve1

Portal Member
June 23, 2008
17
1
Svelvik
Home Country
Norway Norway
Hi!

All of a sudden I am having a issue accessing the configuration tool. Every time I try to start it, it states:
Exception in plugin SetupForm loading : the string was not reconized as a valid DateTime. (this part has been translated from Norwegian to English so might not be 100% accurate.

I've tried to uninstall the plugin, same issue.

Do you have a clue what might be causing this problem?

/sven
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Hi @sve1,

    I'm guessing it has something to do with the date format that was persisted to the MediaPortal.xml file. Is it possible you changed you're locale? The plugin saves some settings which include dates, I suspect it no longer can recognise the date format used e.g. 01/30/2019 is okay when your locale expects the first two digits to represent month, but if you change locale to something that expects the second set of digits to represent month, then you have a problem.

    If you attach your MediaPortal.xml file and also let me know what regional settings you have for your date format I may be able to fix it for you. Ideally, I can spot the issue and fix in the plugin as well so it doesn't happen to someone else.
     

    sve1

    Portal Member
    June 23, 2008
    17
    1
    Svelvik
    Home Country
    Norway Norway
    Hi both!

    I've had this problem for quite some time now. To be honest, I do not know what caused it. I dont think I changed the format.

    This mediaportal install is not that much in use, and after some time I noticed that my trakt sync was not running. I think this problem dates back some months,
    so I dont think it has anything to do with daylight saving either.

    Attached is my config file and screenshot of my regional settings

    Thanks!!

    /sven
     

    Attachments

    • regional_settings.jpg
      regional_settings.jpg
      107.2 KB
    • MediaPortal.xml
      56.6 KB

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Hi @sve1,

    The problem is due to the following line in your MediaPortal.xml:
    Code:
    <entry name="ParentalIgnoreAfterTime">00.00</entry>

    For some reason it has persisted the Time in HH.mm format instead of what your current locale format is HH:mm. Is it possible you had that format before?

    Anyway, to fix is easy, simply make it "00:00".

    I will put in some protection in the plugin as well for next version.
     
    Last edited:

    sve1

    Portal Member
    June 23, 2008
    17
    1
    Svelvik
    Home Country
    Norway Norway
    Hi!

    To my knowledge, I've never ever had that format.

    Anyways, your fix worked like a charm and everything is back to normal!
    To be honest, I think this problem happend during a update, but as I said,
    it happend some time ago so not 100%

    Thanks for the help!!!

    /sven
     

    Users who are viewing this thread

    Top Bottom