Overview
This node provides a custom operation to fetch the current date and time based on a specified timezone. It is useful when you need to retrieve the exact current time in different regions or formats without manually calculating offsets. For example, it can be used in workflows that require timestamping events according to user location or generating time-based triggers aligned with specific timezones.
The "Get Date Now" operation calls an external API to obtain the current date/time string formatted according to the requested timezone and optionally in 12-hour or 24-hour format.
Properties
| Name | Meaning |
|---|---|
| Timezone | The timezone for which to get the current date/time. Examples: Asia/Kuala_Lumpur, UTC |
| 12 Hour Format | Whether to return the time in 12-hour format (true) or 24-hour format (false) |
Output
The node outputs a JSON array where each item contains the response from the external API providing the current date/time string. The exact structure depends on the API response but generally includes fields representing the date and time adjusted to the specified timezone and format.
No binary data output is produced by this node.
Dependencies
- Requires access to the external API at
https://api.customje.com/waktu-api.php. - An API key credential may be configured (optional) for authentication with the external service.
- The node uses HTTP GET requests with JSON responses.
Troubleshooting
Common issues:
- Invalid or unrecognized timezone strings may cause the API to return errors or incorrect times.
- Network connectivity problems can prevent successful API calls.
- If the external API changes or becomes unavailable, the node will fail to retrieve the date/time.
Error messages:
"The operation \"get-date-now\" is not implemented yet!"— indicates the operation name was misspelled or unsupported."The resource \"custom\" is not known!"— indicates the resource name was incorrect.- Errors from the external API will be returned as part of the node's error output if "Continue On Fail" is enabled.
To resolve errors:
- Verify the timezone string is valid and supported by the API.
- Check network connectivity and API availability.
- Ensure correct resource and operation names are selected.
Links and References
- List of IANA Time Zone Database Names
- External API documentation (if available) for
https://api.customje.com/waktu-api.php(not provided in source)