[GH-ISSUE #1474] Add the ability to access the current date while scripting #1467

Closed
opened 2026-03-03 19:51:45 +03:00 by kerem · 1 comment
Owner

Originally created by @alex-taffe on GitHub (Dec 21, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1474

Description

Currently, Date() is unavailable in the JS scripting context. It would be nice to have this.

Why this feature/change is important?

I'm currently working on mocking an API that returns a date. I need to test it against the current date / time. Right now I keep having to copy/paste the unix timestamp in or call out to a date time API to mock it.

Originally created by @alex-taffe on GitHub (Dec 21, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1474 ## Description Currently, `Date()` is unavailable in the JS scripting context. It would be nice to have this. ## Why this feature/change is important? I'm currently working on mocking an API that returns a date. I need to test it against the current date / time. Right now I keep having to copy/paste the unix timestamp in or call out to a date time API to mock it.
kerem 2026-03-03 19:51:45 +03:00
Author
Owner

@alex-taffe commented on GitHub (Dec 21, 2022):

I'm dumb and was constructing my JS wrong

<!-- gh-comment-id:1361712056 --> @alex-taffe commented on GitHub (Dec 21, 2022): I'm dumb and was constructing my JS wrong
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1467
No description provided.