Fix date parse

add missing flake deps
This commit is contained in:
Aaron Bieber 2022-11-13 11:57:07 -07:00
parent 7b3203259e
commit b313bf8d84
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -25,9 +25,11 @@
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [
git
glfw
libGL
libGLU
openssh
pkg-config
xlibsWrapper
xorg.libXcursor

View File

@ -79,7 +79,7 @@ func (c *commit) getInfo(repo string) error {
return err
}
dateStr := trim(d)
date, err := time.Parse("2006-01-01 15:04:05 -0700", dateStr)
date, err := time.Parse("2006-01-02 15:04:05 -0700", dateStr)
if err != nil {
return err
}
@ -135,6 +135,9 @@ func (x *xinStatus) updateRepoInfo() error {
}
commit, err := x.getCommit(trim(currentRev))
if err != nil {
return err
}
x.repoCommit = *commit
return nil