We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5210e36 commit 8a17d85Copy full SHA for 8a17d85
src/assert_dates.sh
@@ -17,11 +17,8 @@ function bashunit::date::to_epoch() {
17
normalized="${normalized/T/ }"
18
normalized="${normalized%Z}"
19
# Strip timezone offset (+HHMM or -HHMM) at end for initial parsing
20
- # shellcheck disable=SC2034
21
- local tz_offset=""
22
case "$normalized" in
23
*[+-][0-9][0-9][0-9][0-9])
24
- tz_offset="${normalized: -5}"
25
normalized="${normalized%[+-][0-9][0-9][0-9][0-9]}"
26
;;
27
esac
0 commit comments