screwdriver-api 8.0.126 → 8.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-api",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.128",
|
|
4
4
|
"description": "API server for the Screwdriver.cd service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@hapi/hoek": "^11.0.0",
|
|
85
85
|
"@hapi/inert": "^7.0.0",
|
|
86
86
|
"@hapi/vision": "^7.0.0",
|
|
87
|
-
"@promster/hapi": "^
|
|
87
|
+
"@promster/hapi": "^15.0.0",
|
|
88
88
|
"archiver": "^7.0.1",
|
|
89
89
|
"async": "^3.2.4",
|
|
90
90
|
"badge-maker": "^3.3.1",
|
|
@@ -166,8 +166,8 @@ function unixToFullTime(timestamp, timeZone) {
|
|
|
166
166
|
);
|
|
167
167
|
|
|
168
168
|
const offsetMatch = timeZoneName.match(/GMT(.*)/)[1];
|
|
169
|
-
|
|
170
|
-
const timezoneOffset =
|
|
169
|
+
const isUtcOffset = offsetMatch === '' || offsetMatch === '+00:00' || offsetMatch === '-00:00';
|
|
170
|
+
const timezoneOffset = isUtcOffset ? 'Z' : offsetMatch;
|
|
171
171
|
|
|
172
172
|
return `${year}-${month}-${day}T${hour}:${minute}:${second}.${fractionalSecond}${timezoneOffset}`;
|
|
173
173
|
}
|