[QFJ-961] Constructors for UtcDate/Time fields should return date in UTC Created: 12/Nov/18 Updated: 11/Jan/19 Resolved: 13/Nov/18 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | None |
Affects Version/s: | 2.1.0 |
Fix Version/s: | 2.1.1 |
Type: | Bug | Priority: | Minor |
Reporter: | Julia Ilyutovich | Assignee: | Christoph John |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
TransactTime (tag 60) should be in UTC. Default constructor for TransactTime() should return date in UTC. Instead, it uses default local time (LocalDateTime.now()): public UtcTimeStampField(int field) { super(field, LocalDateTime.now()); }As a result, the constructed object is not in UTC. |
Comments |
Comment by Christoph John [ 12/Nov/18 ] |
Just saw that other constructors in the same class are also affected. |
Comment by Christoph John [ 12/Nov/18 ] |
And also other fields like UtcTimeField... :-/ |