strong-soap icon indicating copy to clipboard operation
strong-soap copied to clipboard

Date format without Z

Open danielf-rodriguez opened this issue 5 years ago • 7 comments

Is there a way to make date format on XML request comes without the Z at the end?. We have a legacy web service that is validating the format to be YYYY-MM-DD and the Z is causing problems.

danielf-rodriguez avatar Jul 08 '20 19:07 danielf-rodriguez

Yes, It's a big problem for us too. A soap server expects date in format YYYY-MM-DD but in every requests z symbol added into the end of field of date. Can anyone help us?

Scrib3r avatar Aug 20 '20 12:08 Scrib3r

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 13:12 stale[bot]

I hate to ping a stale issue, however it's changing all dates into UTC Zulu time - I'm honestly not sure how. I specifically need these to be in PST. Is there a way to do this?

kellyjandrews avatar Jun 09 '21 01:06 kellyjandrews

So in my case, the API doesn't care about the time zone, so using moment().subtract(7, 'hours') fixed it.

kellyjandrews avatar Jun 09 '21 12:06 kellyjandrews

Has anybody found something? , How to solve this issue ?

hrushikesh-udchalo avatar Jan 28 '22 06:01 hrushikesh-udchalo

Hi, I also need to send dates to an api that requires dates in format 2022-02-08T10:27:18+01:00 instead of Z. Would be great to be able to configure this in the request

pkfms avatar Feb 08 '22 09:02 pkfms

I have the same problem with Z, it should be optional or deleted image

sak963 avatar May 09 '22 14:05 sak963

Hello. I've created MR for fixing this issues https://github.com/loopbackio/strong-soap/pull/525

Scrib3r avatar Mar 01 '23 09:03 Scrib3r