Vscode-restclient: Custom Date Time Format - stripping leading zero from day value

Created on 30 May 2019  路  6Comments  路  Source: Huachao/vscode-restclient

  • VSCode Version: 1.33.1 (User Setup)
  • OS Version: Win 10 Enterprise
  • REST Client Version: 0.21.3

Background

@connelhooley recently made a change to resolve #325 which allows us to use a custom date format as well as specifying a dynamic date in PR #361, although, again this is specific to just our use case, I noticed that when doing "{{$datetime 'YYYY-MM-DD' 5 d}}" today (30th May, 5 days from now being 4th June), it isn't including the leading 0 for the day, we are getting the following response from our internal API

"message": "Supplied value could not be accepted. Supplied date '2019-06-4' is invalid, ensure to supply in yyyy-MM-dd format."

Most helpful comment

@connelhooley it should be released in this week 馃槃

All 6 comments

@cmjchrisjones nice catch, I have fixed the issue and will publish it in next release.

Thanks, looking forward to the next release 馃憤

Replace "%USERNAME%.vscode\extensions\humao.rest-client-0.21.3\dist\extension.js" with the file in "extension.zip" if you need it urgently.
My plugin version is: 0.21.3

extension.zip

Is there any update on when this will be released? I'd rather not get our entire team to download the zip and manually update the extension if possible.

Thanks

@connelhooley it should be released in this week 馃槃

@connelhooley @cmjchrisjones @MrXhh this fix has been published in latest version 0.22.0, you can try it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

heneds picture heneds  路  32Comments

SimonDever picture SimonDever  路  15Comments

olivier-voutat picture olivier-voutat  路  23Comments

codepunkt picture codepunkt  路  29Comments

ben-foster-cko picture ben-foster-cko  路  19Comments