blob: cf5a860dc7591f15143c9d3d76a01511ce390e49 [file] [log] [blame]
package skiaversion
import (
"time"
"github.com/skia-dev/glog"
)
// Date format as reported by 'date --rfc-3339="second"'
const DATE_FORMAT = "2006-01-02 15:04:05-07:00"
func init() {
date, err := time.Parse(DATE_FORMAT, "%(date)s")
if err != nil {
glog.Fatal(err)
}
version = &Version{
Commit: "%(commit_hash)s",
Date: date,
}
}