File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -805,6 +805,9 @@ def _handle_exclude_newer_than(
805
805
Process a value provided for the --exclude-newer-than option.
806
806
807
807
This is an optparse.Option callback for the --exclude-newer-than option.
808
+
809
+ Parses an ISO 8601 datetime string. If no timezone is specified in the string,
810
+ local timezone is used.
808
811
"""
809
812
if value is None :
810
813
return None
@@ -823,7 +826,12 @@ def _handle_exclude_newer_than(
823
826
action = "callback" ,
824
827
callback = _handle_exclude_newer_than ,
825
828
type = "str" ,
826
- help = "Exclude packages newer than given time. This should be an ISO 8601 string." ,
829
+ help = (
830
+ "Exclude packages newer than given time. This should be an ISO 8601 string. "
831
+ "If no timezone is specified, local time is used. "
832
+ "For consistency across environments, specify the timezone explicitly "
833
+ "e.g., '2023-01-01T00:00:00Z' for UTC or '2023-01-01T00:00:00-05:00' for UTC-5."
834
+ ),
827
835
)
828
836
829
837
no_build_isolation : Callable [..., Option ] = partial (
You can’t perform that action at this time.
0 commit comments