[MGNLREST-164] Response date format is not correct Created: 09/Jan/18  Updated: 09/Feb/18  Resolved: 09/Feb/18

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1

Type: Bug Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Hieu Nguyen Duc
Resolution: Fixed Votes: 0
Labels: consolidation
Remaining Estimate: 1h
Time Spent: 1d 7h
Original Estimate: 2d

Issue Links:
Relates
relates to MGNLREST-168 Investigate encoding & decoding of qu... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Saigon 132, Saigon 133
Story Points: 3

 Description   

Date field of node return as pattern yyyy-MM-dd'T'HH:mm:ss.SZ
But we have to request pattern in query param: yyyy-MM-dd'T'HH:mm:ss.SSSXXX

They are inconsistent so incase user cannot reuse return result in nested query param


(Update 2018/02/01)
This is actually a bug when introducing NodeWriter. The responded date time is not formatted correctly and a colon is missing in timezone offset. Copying that value into request parameter eventually doesn't work.
=> Fixing datetime in response is needed.



 Comments   
Comment by Sang Ngo Huu [ 19/Jan/18 ]

There is a comment of ngoc.nguyenthanh: https://git.magnolia-cms.com/projects/MODULES/repos/rest/pull-requests/52/overview?commentId=22383

Please check if we can handle it as well.

Comment by Dai Ha [ 09/Feb/18 ]

Got an the same issue which describes in MGNLREST-168, making filtering datetime (has + sign) not work. So link MGNLREST-168.

Comment by Dai Ha [ 09/Feb/18 ]

verified with magnolia-rest-integration-2.1-20180209.031212-5.jar, magnolia-rest-content-delivery-2.1-20180209.031214-5.jar, magnolia-rest-services-2.1-20180209.031212-5.jar deployed in magnolia-enterprise-pro-demo-bundle-5.6.1-tomcat-bundle.zip.
Query result datetime meets expectation.

Generated at Mon Feb 12 06:57:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.