web stats
ConnectionLogs API in 24 hour format - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 08-21-2019, 01:55 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,006
agermano is on a distinguished road
Default

http://www.mirthcorp.com/community/i...wse/MIRTH-4248

Scheduled to be fixed in 3.9
Reply With Quote
Reply

Tags
api, date

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation