mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add missing month in datetime map
Signed-off-by: Justin Menga <justin.menga@gmail.com>
This commit is contained in:
parent
4374f16667
commit
bf1c377f60
2 changed files with 4 additions and 4 deletions
|
@ -177,8 +177,8 @@ var strftimeToRegex = map[string]string{
|
|||
/*weekdayFull */ `%A`: `(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)`,
|
||||
/*weekdayZeroIndex */ `%w`: `[0-6]`,
|
||||
/*dayZeroPadded */ `%d`: `(?:0[1-9]|[1,2][0-9]|3[0,1])`,
|
||||
/*monthShort */ `%b`: `(?:Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,
|
||||
/*monthFull */ `%B`: `(?:January|February|March|April|June|July|August|September|October|November|December)`,
|
||||
/*monthShort */ `%b`: `(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,
|
||||
/*monthFull */ `%B`: `(?:January|February|March|April|May|June|July|August|September|October|November|December)`,
|
||||
/*monthZeroPadded */ `%m`: `(?:0[1-9]|1[0-2])`,
|
||||
/*yearCentury */ `%Y`: `\d{4}`,
|
||||
/*yearZeroPadded */ `%y`: `\d{2}`,
|
||||
|
|
|
@ -972,8 +972,8 @@ func TestParseLogOptionsDatetimeFormat(t *testing.T) {
|
|||
}{
|
||||
{"%d/%m/%y %a %H:%M:%S%L %Z", "31/12/10 Mon 08:42:44.345 NZDT"},
|
||||
{"%Y-%m-%d %A %I:%M:%S.%f%p%z", "2007-12-04 Monday 08:42:44.123456AM+1200"},
|
||||
{"%b|%b|%b|%b|%b|%b|%b|%b|%b|%b|%b|%b", "Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec"},
|
||||
{"%B|%B|%B|%B|%B|%B|%B|%B|%B|%B|%B|%B", "January|February|March|April|June|July|August|September|October|November|December"},
|
||||
{"%b|%b|%b|%b|%b|%b|%b|%b|%b|%b|%b|%b", "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec"},
|
||||
{"%B|%B|%B|%B|%B|%B|%B|%B|%B|%B|%B|%B", "January|February|March|April|May|June|July|August|September|October|November|December"},
|
||||
{"%A|%A|%A|%A|%A|%A|%A", "Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday"},
|
||||
{"%a|%a|%a|%a|%a|%a|%a", "Mon|Tue|Wed|Thu|Fri|Sat|Sun"},
|
||||
{"Day of the week: %w, Day of the year: %j", "Day of the week: 4, Day of the year: 091"},
|
||||
|
|
Loading…
Reference in a new issue