Skip to content

Incorrect Timestamp conversion for "RFC5424" #19

@UpeksheJay

Description

@UpeksheJay

Describe the bug
SyslogPro RFC5424 is using moment for time formatting but in the format strings, the hour formatting is given as 'hh' not 'HH' which results in 12-hour time formatting. In this way. an event happened at 00:12:23 will be formatted to 12:12:23. This is error-prone. Therefore please change the formatting strings

To Reproduce
Steps to reproduce the behavior:
Look at '// RFC5424 timestamp formating' section in code (index.js)

Expected behavior
Timestamp formatting in RFC5424 to support 24 hour support

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Node
  • Version 11.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions