Add %z for adding time zone string
It is very necessary for our project to display the local time zone. %z is fairly standardized for all operating systems, but %Z, unfortunately, is not.
This is how you can allow the formation of a digital time zone string:
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx index 677fdb658e..2d5784f6d5 100644 --- a/Source/cmTimestamp.cxx +++ b/Source/cmTimestamp.cxx @@ -201,6 +201,7 @@ std::string cmTimestamp::AddTimestampComponent( case 'w': case 'y': case 'Y': + case 'z': case '%': break; case 's': // Seconds since UNIX epoch (midnight 1-jan-1970)