Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong date format 0.16-beta2 #97

Closed
way5 opened this issue Jul 6, 2023 · 2 comments
Closed

Wrong date format 0.16-beta2 #97

way5 opened this issue Jul 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@way5
Copy link
Contributor

way5 commented Jul 6, 2023

Howdy @atauenis !

still having the same problem with the data formats:

WebOne HTTP Proxy Server 0.16.0-beta2
https://github.com/atauenis/webone


Using custom configuration from /etc/webone/webone.conf.
Using configuration file /etc/webone/webone.conf.
Using configuration file /etc/webone/codepage.conf.
Using event log file /var/log/webone.log.
Error while loading configuration: String '31.12.2070 23:59 +0' was not recognized as a valid DateTime.

# localectl status
   System Locale: LANG=C.UTF-8
       VC Keymap: n/a
      X11 Layout: gb
       X11 Model: pc105

# locale -a
C
C.UTF-8
C.utf8
POSIX


if they're formatted as shown below it fixes the issue for me.

SslRootValidAfter=01/01/1970 00:00:00 +0:00
SslRootValidBefore=12/31/2070 23:59:59 +0:00
@atauenis atauenis added the bug Something isn't working label Jul 7, 2023
@atauenis
Copy link
Owner

atauenis commented Jul 7, 2023

But this does not working on my system:

WebOne HTTP Proxy Server 0.16.0-beta2
https://github.com/atauenis/webone


Using configuration file webone.conf.
Using configuration file codepage.conf.
Using event log file C:\Users\AT\AppData\Roaming\webone.log.
Error while loading configuration: String '12/31/2070 23:59:59 +0:00' was not recognized as a valid DateTime.

Press any key to exit.

This is working at least on my test machine (Windows, RU-RU locale):

SslRootValidAfter=Jan 01, 1970 00:00:00 +0:00
SslRootValidBefore=Dec 31, 2070 23:59:59 +0:00

Later will try to test on EN-US configured machine or on a fresh non-localized Linux installation (C.UTF-8).


UPD:
Seems that Debian 12 is no longer able to install without locale, but with RU-RU locale also working.

atauenis added a commit that referenced this issue Jul 7, 2023
@way5
Copy link
Contributor Author

way5 commented Jul 7, 2023

Alright.


SslRootValidAfter=Jan 01, 1970 00:00:00 +0:00
SslRootValidBefore=Dec 31, 2070 23:59:59 +0:00

it seems to be working now. 👍🏻

@way5 way5 closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants