glanceapp / glanceapp/glance

Unable to get a valid string for localTime using custom-api

Open
#714 4 comments 1 reaction 0 assignees View on GitHub
bug report not a bug
Dominant language
Go
Stars
37.1k
Forks
1.5k
Avg merge
1h 11m
Merged PRs (30d)
1

Description

### Description

parseLocalTime in custom-api widget templates returns no text.

For example....

`{{ .String "start" | parseRelativeTime "2006-01-02T15:04:05+00:00" }}` returns `in 5h`, as expected

`{{ .String "start" | parseLocalTime "2006-01-02T15:04:05+00:00" }}` returns nothing

Timezone is correctly defined as America/New_York in Docker container (clock widget displays correctly).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.