File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- 1.0.2
1+ 1.0.3
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ func markdownStr(pixelChrs string, ncommits int) string {
155155}
156156
157157func commit (dir string , daysAgo int ) error {
158- date := fmt . Sprintf ( "%d days ago noon" , daysAgo )
158+ date := time . Now (). AddDate ( 0 , 0 , - daysAgo ). Format ( time . RFC3339 )
159159 return commands (dir ,
160160 []string {"git" , "add" , "." },
161161 []string {
@@ -171,7 +171,6 @@ func commit(dir string, daysAgo int) error {
171171func command (dir string , name string , arg ... string ) error {
172172 cmd := exec .Command (name , arg ... )
173173 cmd .Dir = dir
174- cmd .Env = append (os .Environ (), "TZ=UTC" )
175174
176175 response , err := cmd .CombinedOutput ()
177176 responseStr := string (response )
You can’t perform that action at this time.
0 commit comments