79140797

Date: 2024-10-30 11:04:15
Score: 0.5
Natty:
Report link

We can use the format method with required formatter

Append with below 2 lines

def formattedDate = commitDate.format("yyyy-MM-dd'T'HH:mm:ss'Z'")
log.warn("formattedDate=${formattedDate}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sharad Paul