Skip to content

Commit 186d062

Browse files
authored
Merge pull request #142 from JGreenlee/config-ts-seconds
fix: use seconds for autocreated configs "ts"
2 parents 7a0f6b7 + be665fd commit 186d062

14 files changed

+14
-14
lines changed

.github/actions/convertIssue/parse-issue-body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export async function parseIssueBody(githubIssueTemplateFile, body) {
273273
try {
274274
configObject["url_abbreviation"] = combinedObject.url_abbreviation;
275275
configObject["version"] = 1;
276-
configObject["ts"] = Date.now();
276+
configObject["ts"] = Math.floor(Date.now() / 1000);
277277

278278
let connect_url =
279279
"https://" + combinedObject.url_abbreviation + "-openpath.nrel.gov/api/";

configs/4core-ebike.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "4core-ebike",
33
"version": 1,
4-
"ts": 1719435689601,
4+
"ts": 1719435689,
55
"server": {
66
"connectUrl": "https://4core-ebike-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/cosa-ebike-project.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "cosa-ebike-project",
33
"version": 1,
4-
"ts": 1710526862150,
4+
"ts": 1710526862,
55
"server": {
66
"connectUrl": "https://cosa-ebike-project-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/dfc-fermata.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "dfc-fermata",
33
"version": 9,
4-
"ts": 1707714796485,
4+
"ts": 1707714796,
55
"server": {
66
"connectUrl": "https://dfc-fermata-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/doee-electricbike-proj.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "doee-electricbike-proj",
33
"version": 1,
4-
"ts": 1707330356754,
4+
"ts": 1707330356,
55
"server": {
66
"connectUrl": "https://doee-electricbike-proj-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/godcgo.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "godcgo",
33
"version": 1,
4-
"ts": 1714679651512,
4+
"ts": 1714679651,
55
"server": {
66
"connectUrl": "https://godcgo-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/nc-transit-equity-study.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "nc-transit-equity-study",
33
"version": 1,
4-
"ts": 1733948731794,
4+
"ts": 1733948731,
55
"server": {
66
"connectUrl": "https://nc-transit-equity-study-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/r2ohillsboro.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "r2ohillsboro",
33
"version": 1,
4-
"ts": 1714080477080,
4+
"ts": 1714080477,
55
"server": {
66
"connectUrl": "https://r2ohillsboro-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/r2omilwaukie.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "r2omilwaukie",
33
"version": 1,
4-
"ts": 1714080442042,
4+
"ts": 1714080442,
55
"server": {
66
"connectUrl": "https://r2omilwaukie-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

configs/r2oparkrose.nrel-op.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "r2oparkrose",
33
"version": 1,
4-
"ts": 1714080310835,
4+
"ts": 1714080310,
55
"server": {
66
"connectUrl": "https://r2oparkrose-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"

0 commit comments

Comments
 (0)