Actions6
Overview
This node provides various custom operations, including a "Get Date Now" operation that fetches the current date and time for a specified timezone. It is useful when you need to obtain the current timestamp adjusted to different timezones, formatted either in 12-hour or 24-hour style.
Practical examples:
- Scheduling workflows based on local times in different regions.
- Logging events with timezone-aware timestamps.
- Displaying current time information in user interfaces or reports.
Properties
| Name | Meaning |
|---|---|
| Timezone | The timezone identifier for the date/time, e.g., "Asia/Kuala_Lumpur", "UTC". |
| 12 Hour Format | Whether to use 12-hour format (true) or 24-hour format (false) for the time display. |
Output
The output JSON contains the current date and time information as returned by the external API. It typically includes fields representing the date and time adjusted to the requested timezone and formatted according to the 12-hour or 24-hour preference.
If the node supports binary data output, it is not applicable here since this operation only returns JSON-formatted date/time data.
Dependencies
- Requires an internet connection to call the external API endpoint at
https://api.customje.com/waktu-api.php. - No explicit API key or credential is required for this operation.
- The node uses HTTP GET requests with an
Accept: application/jsonheader to retrieve the date/time data.
Troubleshooting
Common issues:
- Invalid or unrecognized timezone strings may cause the API to return errors or incorrect results.
- Network connectivity problems can prevent successful API calls.
- If the API service is down or unreachable, the node will fail to retrieve the date/time.
Error messages:
- Errors from the API are propagated as node operation errors with status codes and messages.
- If the operation or resource parameters are incorrect or missing, the node throws descriptive errors indicating unsupported operations or unknown resources.
Resolutions:
- Ensure the timezone string matches valid IANA timezone identifiers.
- Verify network access and API availability.
- Use the node's built-in error handling options like "Continue On Fail" to manage failures gracefully.
Links and References
- List of IANA Time Zone Database Names
- Customje API Documentation (if available) (Note: link inferred from code, verify actual documentation)