AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Datetime value not parse

Open zalktisgithub opened this issue 3 years ago • 5 comments

2 Attach error meeage.

Somertime some user message with this error message ! Me not idea to do.

zalktisgithub avatar Sep 06 '22 19:09 zalktisgithub

Which version are you using?

ravibpatel avatar Sep 08 '22 06:09 ravibpatel

Hello ! I use version of 2019 year version.

Ar cieņu,

Ainārs Osmanis


No: Ravi Patel @.> Nosūtīts: ceturtdiena, 2022. gada 8. septembris 09:17 Kam: ravibpatel/AutoUpdater.NET @.> Kopija: Ainārs Osmanis @.>; Author @.> Tēma: Re: [ravibpatel/AutoUpdater.NET] Datetime value not parse (Issue #575)

Which version are you using?

— Reply to this email directly, view it on GitHubhttps://github.com/ravibpatel/AutoUpdater.NET/issues/575#issuecomment-1240271767, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUSR2PXXIJOCPUSRUO3QETV5GAHRANCNFSM6AAAAAAQGECTF4. You are receiving this because you authored the thread.Message ID: @.***>

zalktisgithub avatar Sep 08 '22 07:09 zalktisgithub

Can tell me exactly which version?

ravibpatel avatar Sep 08 '22 10:09 ravibpatel

Version 1.5.6.

Ar cieņu,

Ainārs Osmanis


No: Ravi Patel @.> Nosūtīts: ceturtdiena, 2022. gada 8. septembris 13:55 Kam: ravibpatel/AutoUpdater.NET @.> Kopija: Ainārs Osmanis @.>; Author @.> Tēma: Re: [ravibpatel/AutoUpdater.NET] Datetime value not parse (Issue #575)

Can tell me exactly which version?

— Reply to this email directly, view it on GitHubhttps://github.com/ravibpatel/AutoUpdater.NET/issues/575#issuecomment-1240555954, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUSR2PEQ3SEKL6ACC4SZIDV5HA3BANCNFSM6AAAAAAQGECTF4. You are receiving this because you authored the thread.Message ID: @.***>

zalktisgithub avatar Sep 08 '22 19:09 zalktisgithub

You can set Mandatory to true in XML as shown here and your users won't get this error.

ravibpatel avatar Sep 09 '22 10:09 ravibpatel

I handled the exception in latest commit, so it shouldn't be a problem when 1.7.6 is released, but to prevent this error for current users you can just set mandatory to true in XML.

ravibpatel avatar Sep 25 '22 05:09 ravibpatel

Hello!

My product use on 4000 users computers. Accounting software for Small business. I cannot individual set mandatory to True for current computer.

Now we am update my software component Updater.NET to version 1.7.5. Only later I can know, is this update is helping fot current user.

Thanks You!

Ar cieņu,

Ainārs Osmanis

SIA "Zalktis Programmas"


No: Ravi Patel @.> Nosūtīts: svētdiena, 2022. gada 25. septembris 08:37 Kam: ravibpatel/AutoUpdater.NET @.> Kopija: Ainārs Osmanis @.>; Author @.> Tēma: Re: [ravibpatel/AutoUpdater.NET] Datetime value not parse (Issue #575)

I handled the exception in latest commithttps://github.com/ravibpatel/AutoUpdater.NET/commit/223d4af11a8cbcadfdf97ae2f58546846d0ad9f8, so it shouldn't be a problem when 1.7.6 is released, but to prevent this error for current users you can just set mandatory to true in XML.

— Reply to this email directly, view it on GitHubhttps://github.com/ravibpatel/AutoUpdater.NET/issues/575#issuecomment-1257125410, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUSR2J73BUNHLPQPYUIMMLV77QJVANCNFSM6AAAAAAQGECTF4. You are receiving this because you authored the thread.Message ID: @.***>

zalktisgithub avatar Sep 25 '22 11:09 zalktisgithub

You don't have to set Mandatory to true in code. You can just set it in the XML, and it should work.

This should only happen when the user used the "Remind Later" option in the past. It saves it to fixed date format, so it shouldn't happen in the first place, unless the saved date is corrupted somehow. Setting Mandatory element in XML prevents the date from being read, preventing the exception.

ravibpatel avatar Sep 25 '22 12:09 ravibpatel

In Latvia use Latvian date format dd-MM-yyyy. I can see date formats? In Windows register?. In my and this customer computers.

Ar cieņu, Ainārs Osmanis SIA Zalktis Programmas


From: Ravi Patel @.> Sent: Sunday, September 25, 2022 3:30:01 PM To: ravibpatel/AutoUpdater.NET @.> Cc: Ainārs Osmanis @.>; Author @.> Subject: Re: [ravibpatel/AutoUpdater.NET] Datetime value not parse (Issue #575)

You don't have to set Mandatory to true in code. You can just set it in the XML, and it should work.

This should only happen when the user used the "Remind Later" option in the past. It saves it to fixed date format, so it shouldn't happen in the first place, unless the saved date is corrupted somehow. Setting Mandatory element in XML prevents the date from being read, preventing the exception.

— Reply to this email directly, view it on GitHubhttps://github.com/ravibpatel/AutoUpdater.NET/issues/575#issuecomment-1257183726, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUSR2JKKI2VWGQGCOC4SKDWABAUTANCNFSM6AAAAAAQGECTF4. You are receiving this because you authored the thread.Message ID: @.***>

zalktisgithub avatar Sep 25 '22 12:09 zalktisgithub

It specifies to store it in English format and also specify English when retrieving it, as you can see here. You can see it in Windows registry. Can you tell me what kind of format you see?

ravibpatel avatar Sep 25 '22 14:09 ravibpatel

On my computer I see : 1/26/2022 1:45:45 PM

Ar cieņu,

Ainārs Osmanis SIA "Zalktis Programmas"


No: Ravi Patel @.> Nosūtīts: svētdiena, 2022. gada 25. septembris 17:21 Kam: ravibpatel/AutoUpdater.NET @.> Kopija: Ainārs Osmanis @.>; Author @.> Tēma: Re: [ravibpatel/AutoUpdater.NET] Datetime value not parse (Issue #575)

It specifies to store it in English format and also specify English when retrieving it, as you can see herehttps://github.com/ravibpatel/AutoUpdater.NET/blob/master/AutoUpdater.NET/RegistryPersistenceProvider.cs#L65. You can see it in Windows registry. Can you tell me what kind of format you see?

— Reply to this email directly, view it on GitHubhttps://github.com/ravibpatel/AutoUpdater.NET/issues/575#issuecomment-1257206450, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUSR2L4LDELX2XOS55XP7LWABNYPANCNFSM6AAAAAAQGECTF4. You are receiving this because you authored the thread.Message ID: @.***>

zalktisgithub avatar Oct 11 '22 08:10 zalktisgithub