Skip to content

Commit

Permalink
bump version, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ariebovenberg committed Feb 24, 2025
1 parent b395aa7 commit 7ca14ed
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
🚀 Changelog
============

0.7.1 (2025-02-22)
0.7.1 (2025-02-24)
------------------

- ``Date.add`` and ``Date.subtract`` now support ``DateDelta`` to be passed
as sole positional argument. This is consistent with the behavior of datetime
classes.
- Improved robustness of delta calculations at extreme boundaries
- Improve performance of ``Date`` using Neri-Schneider algorithm,
following Jiff's adoption of the same algorithm.
- Improved performance and robustness of date calculations at extreme boundaries
- Minor fixes to docstrings

0.7.0 (2025-02-20)
------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ maintainers = [
{name = "Arie Bovenberg", email = "[email protected]"},
]
readme = "README.md"
version = "0.7.0"
version = "0.7.1"
license = {text = "MIT"}
description = "Modern datetime library for Python"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion pysrc/whenever/_pywhenever.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - It saves some overhead
from __future__ import annotations

__version__ = "0.7.0"
__version__ = "0.7.1"

import enum
import re
Expand Down
2 changes: 2 additions & 0 deletions src/offset_datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ fn parse_hms_offset(s: &[u8]) -> Option<i32> {
None => Some(secs),
_ => None,
}
// No risk of overflow since we've parsed few digits
.filter(|s| s.abs() < 24 * 3600)
.map(|s| sign * s)
} else {
Expand All @@ -981,6 +982,7 @@ fn parse_rfc3339_offset(s: &[u8]) -> Option<i32> {
sign * ((parse_digit_max(s, 1, b'2')? * 10 + parse_digit(s, 2)?) as i32 * 3600
+ (parse_digit_max(s, 4, b'5')? * 10 + parse_digit(s, 5)?) as i32 * 60),
)
// No risk of overflow since we've parsed few digits
.filter(|secs| secs.abs() < 24 * 3600)
} else {
None
Expand Down

0 comments on commit 7ca14ed

Please sign in to comment.