I am currently using the orb circleci/slack@4.10.1 in order to notify to an slack channel when the pipeline failed. As I see in the code base for circleci/slack@4.10.1 to print the date/time using one of the standard templates the orb is using the variable DATE from the circleCI machine. As that machine is configure in GMT and I am in GMT+2, I am not able to see my current time in the message the orb send to Slack.
It doesn’t look like that’s a configurable parameter for the orb. What I would do is open an Issue on their repository -
asking for the ability to configure date.
1 Like
Thank you so much @bjd2385 !
As you are back, there may be a cleaner answer.
The ORB is just taking its time zone details from the environment it is executing in. Depending on how you have things set up all you need to do is provide a TZ environment variable.
Setting environment variables is also an option for the ‘machine’ type.