Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
d437803e
Commit
d437803e
authored
May 15, 2011
by
Davis King
Browse files
Fixed time display for the change log
parent
627afb81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
docs/docs/stylesheet.xsl
docs/docs/stylesheet.xsl
+20
-5
No files found.
docs/docs/stylesheet.xsl
View file @
d437803e
...
...
@@ -895,7 +895,7 @@
<!-- This function turns a string of the form 2006-03-21T02:35:20
.510956Z
into a nice
<!-- This function turns a string of the form 2006-03-21T02:35:20
+00:00
into a nice
normal looking date -->
<xsl:template
name=
"format-date"
>
<xsl:param
name=
"xsd-date"
/>
...
...
@@ -905,10 +905,14 @@
<xsl:variable
name=
"year"
select=
"substring($date,1,4)"
/>
<xsl:variable
name=
"month"
select=
"substring($date,6,2)"
/>
<xsl:variable
name=
"day"
select=
"substring($date,9,2)"
/>
<xsl:variable
name=
"hour"
select=
"substring($time,1,2)"
/>
<xsl:variable
name=
"minute"
select=
"substring($time,4,2)"
/>
<xsl:variable
name=
"
l
hour"
select=
"substring($time,1,2)"
/>
<xsl:variable
name=
"
l
minute"
select=
"substring($time,4,2)"
/>
<xsl:variable
name=
"second"
select=
"substring($time,7,2)"
/>
<xsl:variable
name=
"ohour"
select=
"substring($time,10,2)"
/>
<xsl:variable
name=
"ominute"
select=
"substring($time,13,2)"
/>
<xsl:choose>
<xsl:when
test=
"$month = 1"
>
Jan
</xsl:when>
<xsl:when
test=
"$month = 2"
>
Feb
</xsl:when>
...
...
@@ -924,8 +928,19 @@
<xsl:when
test=
"$month = 12"
>
Dec
</xsl:when>
</xsl:choose>
<xsl:variable
name=
"op"
select=
"substring($time,9,1)"
/>
<xsl:if
test=
"$op = '-'"
>
<xsl:variable
name=
"hour"
select=
"format-number(number($lhour)-number($ohour),'00')"
/>
<xsl:variable
name=
"minute"
select=
"format-number(number($lminute)-number($ominute),'00')"
/>
<xsl:value-of
select=
"$day"
/>
,
<xsl:value-of
select=
"$year"
/>
(
<xsl:value-of
select=
"$hour"
/>
:
<xsl:value-of
select=
"$minute"
/>
:
<xsl:value-of
select=
"$second"
/>
UTC)
</xsl:if>
<xsl:if
test=
"$op = '+'"
>
<xsl:variable
name=
"hour"
select=
"format-number(number($lhour)+number($ohour),'00')"
/>
<xsl:variable
name=
"minute"
select=
"format-number(number($lminute)+number($ominute),'00')"
/>
<xsl:value-of
select=
"$day"
/>
,
<xsl:value-of
select=
"$year"
/>
(
<xsl:value-of
select=
"$hour"
/>
:
<xsl:value-of
select=
"$minute"
/>
:
<xsl:value-of
select=
"$second"
/>
UTC)
</xsl:if>
</xsl:template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment