github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/log/helpers.go (about)

     1  package log
     2  
     3  import (
     4  	"time"
     5  
     6  	"go.uber.org/zap/zapcore"
     7  )
     8  
     9  /*
    10     Creation Time: 2019 - Aug - 29
    11     Created by:  (ehsan)
    12     Maintainers:
    13        1.  Ehsan N. Moosa (E2)
    14     Auditor: Ehsan N. Moosa (E2)
    15     Copyright Ronak Software Group 2020
    16  */
    17  
    18  func timeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) {
    19  	enc.AppendString(t.Format("06-01-02T15:04:05"))
    20  }