Skip to content

Commit

Permalink
Support "ISO, YMD" date style
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Mar 27, 2012
1 parent b6febcc commit 1fd982d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func (conn *Conn) updateTimeFormats() {
style := conn.runtimeParameters["DateStyle"]

switch style {
case "ISO", "ISO, DMY", "ISO, MDY":
case "ISO", "ISO, DMY", "ISO, MDY", "ISO, YMD":
conn.dateFormat = "2006-01-02"
conn.timeFormat = "15:04:05"
conn.timestampFormat = "2006-01-02 15:04:05"
Expand Down
2 changes: 1 addition & 1 deletion pgsql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ type dateStyleTest struct {

func Test_DateStyle(t *testing.T) {
dateStyles := []string{
"ISO", "ISO, DMY", "ISO, MDY",
"ISO", "ISO, DMY", "ISO, MDY", "ISO, YMD",
"SQL", "SQL, DMY", "SQL, MDY",
"Postgres", "Postgres, DMY", "Postgres, MDY",
"German", "German, DMY", "German, MDY",
Expand Down

0 comments on commit 1fd982d

Please sign in to comment.