ThetaDev/rustypipe
6
37
Fork
You've already forked rustypipe
12

feat: add timezone query option #26

Merged
ThetaDev merged 7 commits from feat/timezone into main 2025年02月06日 15:12:22 +01:00

added a .timezone(name, utc_offset_minutes) query option

fixes: #25

You can test it with the --timezone CLI parameter (note: the CLI needs to be compiled with --features timezone).
The timezone library adds about 2MB to the CLI binary size.

If you are just using your local timezone, you should not need a timezone database, since timezone name and offset can be queried through the OS (and yes, you need to send both to the YouTube API for it to work. Omitting the timezone name results in YouTube falling back to UTC.

added a `.timezone(name, utc_offset_minutes)` query option fixes: #25 You can test it with the `--timezone` CLI parameter (note: the CLI needs to be compiled with `--features timezone`). The timezone library adds about 2MB to the CLI binary size. If you are just using your local timezone, you should not need a timezone database, since timezone name and offset can be queried through the OS (and yes, you need to send both to the YouTube API for it to work. Omitting the timezone name results in YouTube falling back to UTC.
Collaborator
Copy link

Latest build artifacts

Run #328 · 052eaf7e69 · 06.02.2025 14:08:36 UTC

🧪 Test report

Previous builds

generated by Artifactview 0.4.8

<!-- Artifactview --> ### <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/328" target="_blank" rel="noopener noreferrer">Latest build artifacts</a> Run [#328](https://codeberg.org/thetadev/rustypipe/actions/runs/328) · [052eaf7e69](https://codeberg.org/thetadev/rustypipe/commit/052eaf7e69ee0cb3e446146e69ce2bf2664b3e42) · 06.02.2025 14:08:36 UTC 🧪 <a href="https://cb--thetadev--rustypipe--328-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">Test report</a><br> <details> <summary>Previous builds</summary> - [#272](https://codeberg.org/thetadev/rustypipe/actions/runs/272) [[a72029ea54](https://codeberg.org/thetadev/rustypipe/commit/a72029ea5428351d8f1ae82e255a93c1cc195a98)] <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/272" target="_blank" rel="noopener noreferrer">Artifacts</a>: <a href="https://cb--thetadev--rustypipe--272-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">`test`</a> (18.01.2025 06:11:26 UTC) - [#282](https://codeberg.org/thetadev/rustypipe/actions/runs/282) [[4876f5f6d3](https://codeberg.org/thetadev/rustypipe/commit/4876f5f6d3f54dcd7d8829836e7f75c6952e8ba4)] <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/282" target="_blank" rel="noopener noreferrer">Artifacts</a>: <a href="https://cb--thetadev--rustypipe--282-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">`test`</a> (25.01.2025 00:14:39 UTC) - [#287](https://codeberg.org/thetadev/rustypipe/actions/runs/287) [[19e1428679](https://codeberg.org/thetadev/rustypipe/commit/19e1428679ae94725cc0381350892307c04fd0d3)] <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/287" target="_blank" rel="noopener noreferrer">Artifacts</a>: <a href="https://cb--thetadev--rustypipe--287-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">`test`</a> (25.01.2025 20:14:42 UTC) - [#327](https://codeberg.org/thetadev/rustypipe/actions/runs/327) [[c729801e57](https://codeberg.org/thetadev/rustypipe/commit/c729801e57bb328b95dee783b0a36d64ddf68cae)] <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/327" target="_blank" rel="noopener noreferrer">Artifacts</a>: <a href="https://cb--thetadev--rustypipe--327-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">`test`</a> (06.02.2025 13:56:06 UTC) <!--NEXT_PREV - [#328](https://codeberg.org/thetadev/rustypipe/actions/runs/328) [[052eaf7e69](https://codeberg.org/thetadev/rustypipe/commit/052eaf7e69ee0cb3e446146e69ce2bf2664b3e42)] <a href="https://av.thetadev.de/?url=https://codeberg.org/thetadev/rustypipe/actions/runs/328" target="_blank" rel="noopener noreferrer">Artifacts</a>: <a href="https://cb--thetadev--rustypipe--328-1.av.thetadev.de/junit.xml?viewer=1" target="_blank" rel="noopener noreferrer">`test`</a> (06.02.2025 14:08:36 UTC) --> </details> <sup>generated by [Artifactview 0.4.8](https://codeberg.org/ThetaDev/artifactview)</sup>
ThetaDev force-pushed feat/timezone from a38bccadbd
Some checks failed
CI / Test (pull_request) Failing after 7m48s
to 8a44daddaf
Some checks failed
CI / Test (pull_request) Failing after 3m1s
2025年01月25日 03:26:06 +01:00
Compare
ThetaDev force-pushed feat/timezone from c729801e57
Some checks failed
CI / Test (pull_request) Failing after 3m29s
to 052eaf7e69
All checks were successful
CI / Test (pull_request) Successful in 3m35s
CI / Test (push) Successful in 3m25s
2025年02月06日 15:08:34 +01:00
Compare
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ThetaDev/rustypipe!26
Reference in a new issue
ThetaDev/rustypipe
No description provided.
Delete branch "feat/timezone"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?