Skip to content

Commit 6990b38

Browse files
committed
Remove timezone validation, start using Olson ID.
1 parent 3c6f967 commit 6990b38

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

bin/author/blank.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ if [ "$#" -ne 1 ]; then
1010
ENTRY_SLUG=$(date +"%m-%d-%Y")
1111
fi
1212

13-
ENTRY_PATH=./entries/$(date +'%s')-$(date +%Z)-$ENTRY_SLUG.md
13+
ENTRY_PATH=./entries/$(date +'%s')-$ENTRY_SLUG.md
14+
TIMEZONE=$(timedatectl show -p Timezone --value)
1415

1516
cat <<ENTRY_START_TEXT > "$ENTRY_PATH"
17+
---
18+
{
19+
"timezone": "$TIMEZONE",
20+
"location": ""
21+
}
22+
---
1623
#
1724
1825
ENTRY_START_TEXT

bin/validate.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ echo "running eslint..."
2323

2424
find . -name "*.js" -not -path "./out/*" -not -path "*/node_modules/*" -not -path "./data/archivebox/archive/*" -not -path "./static/deeplinks/*" -exec eslint {} + || FAIL=5
2525

26-
echo "checking timezones..."
27-
28-
if [[ $(find ./entries -mindepth 1 | cut -d- -f2 | grep -E -v -c "(EST)|(PST)|(PDT)|(ROC)") -gt 0 ]]; then
29-
echo "invalid timezone found :("
30-
FAIL=7
31-
fi
32-
3326
echo "checking broken links..."
3427

3528
# shellcheck disable=SC2044

0 commit comments

Comments
 (0)