Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct time layout #4

Merged
merged 1 commit into from
Sep 9, 2014
Merged

Conversation

gongo
Copy link
Contributor

@gongo gongo commented Sep 9, 2014

Hi @tomohiro

I altered time layout at seconds.

package main

import (
    "fmt"
    "time"
)

func main() {
    fmt.Println(time.Now())
    fmt.Println(time.Now().Format("20060102150406")) // before
    fmt.Println(time.Now().Format("20060102150405")) // after
}

// Output
// 2014-09-09 20:36:51.206140293 +0900 JST
// 20140909203614 // <- at the end 14 is wrong (14 is "2014")
// 20140909203651 // <- at the end 51 is correct!!

@tomohiro tomohiro added the bug label Sep 9, 2014
tomohiro added a commit that referenced this pull request Sep 9, 2014
@tomohiro tomohiro merged commit d373fcc into tomohiro:master Sep 9, 2014
@tomohiro
Copy link
Owner

tomohiro commented Sep 9, 2014

Thanks! 🌟

@gongo gongo deleted the wrong-time_format branch September 9, 2014 11:47
@gongo
Copy link
Contributor Author

gongo commented Sep 9, 2014

🍕

@tomohiro
Copy link
Owner

tomohiro commented Sep 9, 2014

Released as 0.3.1 🎉

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

Successfully merging this pull request may close these issues.

2 participants