Docs: changes.xml dates converted to ISO 8601 format.

Dates in ISO 8601 format are in line with what is used in nginx.org news,
and are generally less ambiguous and easier to work with.

The changes.xml was converted using sed:

$ sed 's/date="\(..\)\.\(..\)\.\(....\)"/date="\3-\2-\1"/g' changes.xml

Appropriate changes to changes.xsls were introduced.
This commit is contained in:
Maxim Dounin 2017-02-16 18:32:49 +03:00
parent 3418a6ec1c
commit b4a2393927
2 changed files with 419 additions and 413 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,13 +25,19 @@ X:template = "changes" {
' '),
1, $conf/changes[@lang=$lang]/length)}
X:if "$lang='ru'" { !{@date} }
X:if "$lang='ru'" {
!{substring(@date, 9, 2)}
X:text {.}
!{substring(@date, 6, 2)}
X:text {.}
!{substring(@date, 1, 4)}
}
X:if "$lang='en'" {
!{substring(@date, 1, 2)}
!{substring(@date, 9, 2)}
!{$conf/changes[@lang=$lang]/month[number(substring(current()/@date,
4, 2))]}
!{substring(@date, 7, 4)}
6, 2))]}
!{substring(@date, 1, 4)}
}
X:text {
}