Skip to content

Commit

Permalink
Clarify exclude-newer only allows full timestamps in settings docs
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Nov 14, 2024
1 parent 195f4b6 commit dc443fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/reference/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,11 @@ standard, though only the following fields are respected:

### [`exclude-newer`](#exclude-newer) {: #exclude-newer }

Limit candidate packages to those that were uploaded prior to the given date.
Limit candidate packages to those that were uploaded prior to a given point in time.

Accepts both [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) timestamps (e.g.,
`2006-12-02T02:07:43Z`) and local dates in the same format (e.g., `2006-12-02`) in your
system's configured time zone.
Accepts [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) timestamps (e.g.,
`2006-12-02T02:07:43Z`). A full timestamp is required to ensure that the resolver
will behave consistently across timezones.

**Default value**: `None`

Expand All @@ -651,12 +651,12 @@ system's configured time zone.

```toml
[tool.uv]
exclude-newer = "2006-12-02"
exclude-newer = "2006-12-02T02:07:43Z"
```
=== "uv.toml"

```toml
exclude-newer = "2006-12-02"
exclude-newer = "2006-12-02T02:07:43Z"
```

---
Expand Down

0 comments on commit dc443fa

Please sign in to comment.