-
-
Notifications
You must be signed in to change notification settings - Fork 453
Closed
Description
Describe the bug
When using the {{faker 'date.recent'}} helper, the expected result is something like "2020-12-24T03:06:43.847Z" (as explained in Faker.js' doc) but I'm getting something like Thu Dec 24 2020 14:22:55 GMT+0100 (Central European Standard Time).
To Reproduce
Use a template like this one :
{
"date": "{{ faker 'date.recent'}}"
}
Expected behavior
I'm expecting an ISO formatted date as vanilla Faker.js would provide it, not a reformatted one.
Screenshots
This is the result with the faker helper :

This is what I'm expecting, and that I get when using this workaround : {{date '2019' '2020' "yyyy-MM-d'T'HH:mm:ss'Z'"}}

Mockoon version:
1.11.0
OS / OS version:
Mac OS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels