PlasmaPy / PlasmaPy/plasmapy.github.io

Create shortcode to handle time zones

Open
#84 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Create a shortcode so we can defined a meeting in a given timezone (e.g. EST) hand have the other timezones (PST and UTC) automatically generated.

It might be possible to store meeting times in web/data/vars.json so the variables are available to all pages/posts. This would allows us to only update vars.json if we change a weekly meeting time, and the change would propagate to all pages/posts.

It would nice to this pinned with a cron job that has the website built, say, at 5am EST every Sunday so time changes from daylight savings is automatically adjusted for.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the proposed web/data/vars.json location and how shortcodes are handled in the website pages and posts. Define how a meeting time in one timezone should produce PST and UTC values, then determine how the website build could be scheduled by cron for weekly daylight-saving updates.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.