gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception message: String was not recognized as a valid DateTime.

alebambi81 opened this issue · comments

Hello,
I've recently changed the regional format on my computer (from Italian to US) and WinNUT always crashes at the startup with this error log:

Exception type: System.FormatException
Exception message: String was not recognized as a valid DateTime.
Exception stack trace:
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.Convert.ToDateTime(String value, IFormatProvider provider)
at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at WinNUT_Client.Update_Gui.VerifyUpdate()
at WinNUT_Client.Update_Gui.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at WinNUT_Client.WinNUT.WinNUT_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The date has changed from dd/mm/yyyy to mm/dd/yyyy and the time from 24h to 12h.
I tried to uninstall and reinstall it but I always get the crash.
How can I reset or change the WinNUT's date and time format?

Thanks

Alessandro

Hi Alessandro,

This repository is no longer maintained, and development has moved over to the new repository at https://github.com/nutdotnet/WinNUT-Client. Specifically, I believe this issue may be related to nutdotnet/WinNUT-Client#78. Please add your feedback to that issue (this exception and any log you can provide), then close this issue so people know to go to the new repository.

Thank you!

Thank you, I'll continue on the new repository!