[ Service ] [ Executor ] 修改OctopusObjectMapper

This commit is contained in:
zeaslity
2023-08-11 15:47:54 +08:00
parent 06170c1024
commit 0a78f9a02b
15 changed files with 175 additions and 152 deletions

View File

@@ -136,7 +136,7 @@ func executorOMHandler(octopusMessage *OctopusMessage) {
// send back the result log
octopusMessage.Result = resultLog
octopusMessage.ACTime = utils.ParseISOLocalDateTime()
octopusMessage.ACTime = utils.ParseDateTimeTime()
// Send
octopusMessage.SendToOctopusServer()

View File

@@ -15,6 +15,7 @@ func ParseDateTimeTime() string {
return now.Format(time.DateTime)
}
// ParseISOLocalDateTime 时间格式为2023-08-11T10:48:15+08:00
func ParseISOLocalDateTime() string {
now := time.Now()
return now.Format(time.RFC3339)