We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 584d894 + a28cb28 commit 9c4d28aCopy full SHA for 9c4d28a
1 file changed
internal/dockerfile/inlayHint.go
@@ -29,8 +29,7 @@ func InlayHint(hubService hub.Service, doc document.DockerfileDocument, rng prot
29
if t.TagLastPushed != "" {
30
c := carbon.Parse(t.TagLastPushed, carbon.Local)
31
if c != nil && c.IsValid() {
32
- goTime := c.StdTime()
33
- localFormat := goTime.Format("2006-01-02 15:04:05 MST")
+ localFormat := c.Layout("2006-01-02 15:04:05 MST")
34
hints = append(hints, protocol.InlayHint{
35
Label: fmt.Sprintf("(last pushed %v)", c.DiffForHumans()),
36
PaddingLeft: types.CreateBoolPointer(true),
0 commit comments