File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import (
34
34
"arduino.cc/builder/types"
35
35
"arduino.cc/builder/utils"
36
36
"path/filepath"
37
+ "strconv"
37
38
"strings"
38
39
"time"
39
40
)
@@ -108,10 +109,10 @@ func (s *SetupBuildProperties) Run(context map[string]interface{}) error {
108
109
}
109
110
110
111
now := time .Now ()
111
- buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_UTC ] = string (now .Unix ())
112
- buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_LOCAL ] = string (utils .LocalUnix (now ))
113
- buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_ZONE ] = string (utils .TimezoneOffset ())
114
- buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_DST ] = string (utils .DaylightSavingsOffset (now ))
112
+ buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_UTC ] = strconv . FormatInt (now .Unix (), 10 )
113
+ buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_LOCAL ] = strconv . FormatInt (utils .LocalUnix (now ), 10 )
114
+ buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_ZONE ] = strconv . Itoa (utils .TimezoneOffset ())
115
+ buildProperties [constants .BUILD_PROPERTIES_EXTRA_TIME_DST ] = strconv . Itoa (utils .DaylightSavingsOffset (now ))
115
116
116
117
context [constants .CTX_BUILD_PROPERTIES ] = buildProperties
117
118
You can’t perform that action at this time.
0 commit comments