Skip to content

Commit

Permalink
Merge pull request #76 from hpc-carpentry/fix_dates
Browse files Browse the repository at this point in the history
Fix workshop dates
  • Loading branch information
ocaisa authored Feb 23, 2024
2 parents 9e89040 + 8b7cbb9 commit 61c79eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

- name: Install GitHub Pages, Bundler, and kramdown gems
run: |
gem install bundler yaml-lint
gem install bundler:2.4.22 yaml-lint
- name: Set up caching for Bundler
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .vendor/bundle
key: gems-${{ hashFiles('**/Gemfile') }}
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Run a spellchecker
run: |
sudo pip install codespell &&\
codespell --skip ".vendor,assets,*.pdf,*.png,*.jpg,*.jpeg,*.gif,*.xap,*.js,_data,_sass,.git,*.svg,*.geojson,citations.md,latam-tf.md,.jekyll-metadata,_site" --ignore-words-list "files',tawk,rouge,aci,ois" .
codespell --skip ".vendor,assets,*.pdf,*.png,*.jpg,*.jpeg,*.gif,*.xap,*.js,_data,_sass,.git,*.svg,*.geojson,citations.md,latam-tf.md,.jekyll-metadata,_site" --ignore-words-list "files',tawk,rouge,aci,ois,re-use" .
- name: Build site
run: make site
4 changes: 2 additions & 2 deletions feeds/workshops.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
event_data["url"] = event_data["url"].map(lambda url: urllib.parse.urlparse(url, 'http').geturl())

# Convert the dates
event_data["start_date"] = pd.to_datetime(event_data["start_date"])
event_data["end_date"] = pd.to_datetime(event_data["end_date"])
event_data["start_date"] = pd.to_datetime(event_data["start_date"], dayfirst=True)
event_data["end_date"] = pd.to_datetime(event_data["end_date"], dayfirst=True)

# Split the dataframe into past and ongoing/future events
# - First sort by end_date
Expand Down

0 comments on commit 61c79eb

Please sign in to comment.