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

RFC 3164 dates with single digit day should pad with instead of 0 #37

Open
cyrille-leclerc opened this issue Mar 4, 2020 · 0 comments · May be fixed by #38
Open

RFC 3164 dates with single digit day should pad with instead of 0 #37

cyrille-leclerc opened this issue Mar 4, 2020 · 0 comments · May be fixed by #38

Comments

@cyrille-leclerc
Copy link
Contributor

Actual: Aug 07 16:53:16
Expected: Aug 7 16:53:16

https://tools.ietf.org/html/rfc3164#page-10

4.1.2 HEADER Part of a syslog Packet
...
The TIMESTAMP field is the local time and is in the format of "Mmm dd
   hh:mm:ss" (without the quote marks) where:

         Mmm is the English language abbreviation for the month of the
         year with the first character in uppercase and the other two
         characters in lowercase.  The following are the only acceptable
         values:

         Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec

         dd is the day of the month.  If the day of the month is less
         than 10, then it MUST be represented as a space and then the
         number.  For example, the 7th day of August would be
         represented as "Aug  7", with two spaces between the "g" and
         the "7".
...
cyrille-leclerc added a commit to cyrille-leclerc/syslog-java-client that referenced this issue Mar 4, 2020
cyrille-leclerc added a commit to cyrille-leclerc/syslog-java-client that referenced this issue Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant