web stats
Mirth Community - View Single Post - ConnectionLogs API in 24 hour format
View Single Post
  #1  
Old 08-21-2019, 05:19 AM
Joachim Joachim is offline
What's HL7?
 
Join Date: Nov 2015
Posts: 3
Joachim is on a distinguished road
Default ConnectionLogs API in 24 hour format

Hello!

When using the API and getting connection logs.

GET /extensions/dashboardstatus/connectionLogs

Then, how can I set so "dateAdded" field is using 24 hour format?

Code:
<linked-list>
    <com.mirth.connect.plugins.dashboardstatus.ConnectionLogItem>
        <logId>98883</logId>
        <channelId>5106963d-ac46-4f94-a422-d89a83b10fbe</channelId>
        <metadataId>0</metadataId>
        <dateAdded>2019-08-21 03:00:02.988</dateAdded>
        <channelName>ChannelName</channelName>
        <connectorType>Source: JavaScript Reader  (RAW -&gt; JSON)</connectorType>
        <eventState>Idle</eventState>
        <information></information>
    </com.mirth.connect.plugins.dashboardstatus.ConnectionLogItem>
...
That date should now be 15:00:02.988 instead of 03:00:02.988. Otherwise I cant distinguish if it was AM or PM.

Software:
Mirth 3.8.0
OpenJDK 11.0.4

Any ideas?
Reply With Quote