KAFKA-18400: Don't use YYYY when formatting/parsing dates in Java client (#18404)

Reviewers: Andrew Schofield <aschofield@confluent.io>
This commit is contained in:
Kirk True 2025-01-11 10:29:01 -08:00 committed by GitHub
parent 1ee715473c
commit 403fe71c5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -180,7 +180,7 @@ Deletion of requested consumer groups ('my-group', 'my-other-group') was success
--reset-offsets also has the following scenarios to choose from (at least one scenario must be selected):
<ul>
<li>
--to-datetime &lt;String: datetime&gt; : Reset offsets to offsets from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'
--to-datetime &lt;String: datetime&gt; : Reset offsets to offsets from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'
</li>
<li>
--to-earliest : Reset offsets to earliest offset.

View File

@ -101,7 +101,7 @@
&#39;n&#39;, where &#39;n&#39; can be positive or
negative
--to-datetime &lt;String&gt; Reset offsets to offset from datetime.
Format: &#39;YYYY-MM-DDTHH:mm:SS.sss&#39;
Format: &#39;YYYY-MM-DDThh:mm:ss.sss&#39;
--to-earliest Reset offsets to earliest offset.
--to-latest Reset offsets to latest offset.
--to-offset &lt;Long&gt; Reset offsets to a specific offset.

View File

@ -610,7 +610,7 @@ public class StreamsResetter {
toOffsetOption = parser.accepts("to-offset", "Reset offsets to a specific offset.")
.withRequiredArg()
.ofType(Long.class);
toDatetimeOption = parser.accepts("to-datetime", "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'")
toDatetimeOption = parser.accepts("to-datetime", "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'")
.withRequiredArg()
.ofType(String.class);
byDurationOption = parser.accepts("by-duration", "Reset offsets to offset by duration from current timestamp. Format: 'PnDTnHnMnS'")

View File

@ -62,7 +62,7 @@ public class ConsumerGroupCommandOptions extends CommandDefaultOptions {
private static final String EXPORT_DOC = "Export operation execution to a CSV file. Supported operations: reset-offsets.";
private static final String RESET_TO_OFFSET_DOC = "Reset offsets to a specific offset.";
private static final String RESET_FROM_FILE_DOC = "Reset offsets to values defined in CSV file.";
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'";
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'";
private static final String RESET_BY_DURATION_DOC = "Reset offsets to offset by duration from current timestamp. Format: 'PnDTnHnMnS'";
private static final String RESET_TO_EARLIEST_DOC = "Reset offsets to earliest offset.";
private static final String RESET_TO_LATEST_DOC = "Reset offsets to latest offset.";

View File

@ -54,7 +54,7 @@ public class ShareGroupCommandOptions extends CommandDefaultOptions {
"To define the scope use --all-topics or --topic.";
private static final String DRY_RUN_DOC = "Only show results without executing changes on share groups. Supported operations: reset-offsets.";
private static final String EXECUTE_DOC = "Execute operation. Supported operations: reset-offsets.";
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDTHH:mm:SS.sss'";
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'";
private static final String RESET_TO_EARLIEST_DOC = "Reset offsets to earliest offset.";
private static final String RESET_TO_LATEST_DOC = "Reset offsets to latest offset.";
private static final String MEMBERS_DOC = "Describe members of the group. This option may be used with the '--describe' option only.";