Skip to content

Commit

Permalink
Fix time format typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Sep 16, 2022
1 parent 4d310df commit 1c9d67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/usage/expressions.md
Expand Up @@ -315,7 +315,7 @@ The time `now` will return the current unix timestamp `{time now}`
#### Time Formats

**Supported Formats:**
ASNIC, UNIX, RUBY, RFC822, RFC822Z, RFC1123, RFC1123Z, RFC3339, RFC3339, RFC3339N, NGINX
ANSIC, UNIX, RUBY, RFC822, RFC822Z, RFC1123, RFC1123Z, RFC3339, RFC3339, RFC3339N, NGINX

**Additional formats for formatting:**
MONTH, MONTHNAME, MNTH, DAY, WEEKDAY, WDAY, YEAR, HOUR, MINUTE, SECOND, TIMEZONE, NTIMEZONE
Expand Down
2 changes: 1 addition & 1 deletion pkg/expressions/stdlib/funcsTime.go
Expand Up @@ -16,7 +16,7 @@ const defaultTimeFormat = time.RFC3339
var timeFormats = map[string]string{
"": defaultTimeFormat,
// Standard formats
"ASNIC": time.ANSIC,
"ANSIC": time.ANSIC,
"UNIX": time.UnixDate,
"RUBY": time.RubyDate,
"RFC822": time.RFC822,
Expand Down

0 comments on commit 1c9d67c

Please sign in to comment.