Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Conversation

lfdominguez
Copy link

@lfdominguez lfdominguez commented Feb 18, 2022

This allow to render time dates with custom time zones, for example if you have a devops team in different time zones and you want create a message template with the .app.status.operationState.finishedAt rendered to different locations.

Message example:

Application `{{.app.metadata.name}}` has been successfully synced at 

`UTC Time:` {{ (call .time.Parse .app.status.operationState.finishedAt).UTC.Format "02-January-2006 03:04pm" }}.
`Cuban Time:` {{ ((call .time.Parse .app.status.operationState.finishedAt).In (call .time.LoadLocation "America/Havana")).Format "02-January-2006 03:04pm" }}.

This allow to render time dates with custom time zones, for example if you have a devops team in different time zones and you want create a message template with the `.app.status.operationState.finishedAt` rendered to different locations.
@CLAassistant
Copy link

CLAassistant commented Feb 18, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants