Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFD-3745: Force UTC everywhere #2498

Merged
merged 6 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"kind" : "instance",
"software" : {
"name" : "Blue Button API: Direct",
"version" : "2.165.0-SNAPSHOT"
"version" : "2.167.0-SNAPSHOT"
},
"implementation" : {
"description" : "gov.cms.bfd:bfd-server-war",
Expand Down Expand Up @@ -34,7 +34,7 @@
}, {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "startIndex",
"type" : "string",
Expand All @@ -57,7 +57,7 @@
}, {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "excludeSAMHSA",
"type" : "string",
Expand Down Expand Up @@ -112,7 +112,7 @@
}, {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "_lastUpdated",
"type" : "date",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"kind" : "instance",
"software" : {
"name" : "Blue Button API: Direct",
"version" : "2.165.0-SNAPSHOT"
"version" : "2.167.0-SNAPSHOT"
},
"implementation" : {
"description" : "gov.cms.bfd:bfd-server-war",
Expand All @@ -35,7 +35,7 @@
"searchParam" : [ {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "excludeSAMHSA",
"type" : "string",
Expand Down Expand Up @@ -78,7 +78,7 @@
"searchParam" : [ {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "excludeSAMHSA",
"type" : "string",
Expand Down Expand Up @@ -121,7 +121,7 @@
"searchParam" : [ {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "_profile",
"type" : "string",
Expand All @@ -148,7 +148,7 @@
"searchParam" : [ {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "excludeSAMHSA",
"type" : "string",
Expand Down Expand Up @@ -207,7 +207,7 @@
}, {
"name" : "_lastUpdated",
"type" : "date",
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nExamples:\n - `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date"
"documentation" : "Only satisfy the Search if the Beneficiary's `last_updated` Date falls within a specified _DateRange_.\nA _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.\nThis parameter can be included in a request one or more times.\n\nInexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.\n\nExamples:\n - `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates\n - `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today\n - `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date"
}, {
"name" : "cursor",
"type" : "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ paths:
A _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.
This parameter can be included in a request one or more times.

Inexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.

Examples:
- `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date
- `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date
example: "gt2023-01-02"
excludeSAMHSA:
type: string
Expand Down Expand Up @@ -163,10 +165,12 @@ paths:
A _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.
This parameter can be included in a request one or more times.

Inexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.

Examples:
- `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date
- `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date
example: "gt2023-01-02"
startIndex:
type: integer
Expand Down Expand Up @@ -277,10 +281,12 @@ paths:
A _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.
This parameter can be included in a request one or more times.

Inexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.

Examples:
- `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date
- `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date
example: "gt2023-01-02"
startIndex:
type: integer
Expand Down Expand Up @@ -389,10 +395,12 @@ paths:
A _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.
This parameter can be included in a request one or more times.

Inexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.

Examples:
- `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date
- `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date
example: "gt2023-01-02"
excludeSAMHSA:
type: string
Expand Down Expand Up @@ -505,10 +513,12 @@ paths:
A _DateRange_ can be defined by providing less than `lt` and/or greater than `gt` values.
This parameter can be included in a request one or more times.

Inexact timestamps are accepted, but not recommended, since the input will implicitly be converted to use the server's timezone.

Examples:
- `_lastUpdated=gt2023-01-02&_lastUpdated=lt2023-05-01` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01` defines a range from the earliest available records until the provided date
- `_lastUpdated=gt2023-01-02T00:00+00:00&_lastUpdated=lt2023-05-01T00:00+00:00` defines a range between two provided dates
- `_lastUpdated=gt2023-01-02T00:00+00:00` defines a range between the provided date and today
- `_lastUpdated=lt2023-05-01T00:00+00:00` defines a range from the earliest available records until the provided date
example: "gt2023-01-02"
excludeSAMHSA:
type: string
Expand Down
9 changes: 6 additions & 3 deletions apps/utils/scripts/build-bfd
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ Supported long options:
EOF
}

# Force UTC time
export TZ=UTC

# Either run or print commands depending on dry_run setting.
dry_run=false
execute() {
if [[ $dry_run = "false" ]] ; then
echo "$@"
eval "$@"
"$@"
else
echo "$@"
fi
Expand Down Expand Up @@ -145,8 +148,8 @@ args=""
[[ $use_minio == "true" ]] && args="$args -Ds3.local=true"
[[ $projects != "" ]] && args="$args$projects"
[[ $include_dependencies = "true" ]] && args="$args -am"
[[ $test_arg != "" ]] && args="$args -Dtest=\"$test_arg\""
[[ $it_test_arg != "" ]] && args="$args -Dit.test=\"$it_test_arg\""
[[ $test_arg != "" ]] && args="$args -Dtest=$test_arg"
aschey-forpeople marked this conversation as resolved.
Show resolved Hide resolved
[[ $it_test_arg != "" ]] && args="$args -Dit.test=$it_test_arg"
[[ $resume_from != "" ]] && args="$args -rf $resume_from"
[[ $build_image == "true" ]] && args="$args -Djib.skip=false"
[[ $profile_name != "" ]] && args="$args -P${profile_name}"
Expand Down
Loading