Skip to content

Commit db80879

Browse files
Petr Matousekjiridanek
authored andcommitted
FIX(formatter): creation_time field format
for details, see https://github.com/amqp/rhea/releases/tag/2.0.0
1 parent d6143f2 commit db80879

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/formatter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Formatter {
158158
workDict['content-type'] = dict['content_type'];
159159
workDict['content-encoding'] = dict['content_encoding'];
160160
workDict['absolute-expiry-time'] = dict['absolute_expiry_time'];
161-
workDict['creation-time'] = dict['creation_time'];
161+
workDict['creation-time'] = dict['creation_time'].getTime();
162162
workDict['group-id'] = dict['group_id'];
163163
workDict['group-sequence'] = dict['group_sequence'];
164164
workDict['reply-to-group-id'] = dict['reply_to_group_id'];
@@ -211,7 +211,7 @@ class Formatter {
211211
workDict['content_type'] = dict['content_type'];
212212
workDict['content_encoding'] = dict['content_encoding'];
213213
workDict['absolute-expiry-time'] = dict['absolute_expiry_time'];
214-
workDict['creation_time'] = dict['creation_time'];
214+
workDict['creation-time'] = dict['creation_time'].getTime();
215215
workDict['group-id'] = dict['group_id'];
216216
workDict['group-sequence'] = dict['group_sequence'];
217217
workDict['reply-to-group-id'] = dict['reply_to_group_id'];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-rhea",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"description": "Client interface built on amqp/rhea lib",
55
"scripts": {
66
"test": "mocha test/*Test.js",

0 commit comments

Comments
 (0)