Browse Source

use HTML entity instead of unicode escape sequence

master
Stefan Bodewig 7 years ago
parent
commit
de95b34f04
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Zip.java
  2. +2
    -2
      src/main/org/apache/tools/ant/util/DateUtils.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -601,10 +601,10 @@ public class Zip extends MatchingTask {
/**
* Set all stored file modification times to {@code time}.
* @param time Milliseconds since 1970-01-01 00:00, or
* <code>YYYY-MM-DD{T/ }HH:MM[:SS[.SSS]][ ][\u00b1ZZ[[:]ZZ]]</code>, or
* <code>YYYY-MM-DD{T/ }HH:MM[:SS[.SSS]][ ][&plusmn;ZZ[[:]ZZ]]</code>, or
* <code>MM/DD/YYYY HH:MM[:SS] {AM/PM}</code>, where {a/b} indicates
* that you must choose one of a or b, and [c] indicates that you
* may use or omit c. \u00b1ZZZZ is the timezone offset, and may be
* may use or omit c. &plusmn;ZZZZ is the timezone offset, and may be
* literally "Z" to mean GMT.
* @since Ant 1.9.10
*/


+ 2
- 2
src/main/org/apache/tools/ant/util/DateUtils.java View File

@@ -346,10 +346,10 @@ public final class DateUtils {
* That is:
* <ul>
* <li>Milliseconds since 1970-01-01 00:00</li>
* <li><code>YYYY-MM-DD{T| }HH:MM[:SS[.SSS]][ ][\u00b1ZZ[[:]ZZ]]</code></li>
* <li><code>YYYY-MM-DD{T| }HH:MM[:SS[.SSS]][ ][&plusmn;ZZ[[:]ZZ]]</code></li>
* <li><code>MM/DD/YYYY HH:MM[:SS] {AM|PM}</code></li></ul>
* where {a|b} indicates that you must choose one of a or b, and [c]
* indicates that you may use or omit c. \u00b1ZZZZ is the timezone offset, and
* indicates that you may use or omit c. &plusmn;ZZZZ is the timezone offset, and
* may be literally "Z" to mean GMT.
*
* @param dateStr String


Loading…
Cancel
Save