Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cto
g1
Commits
fe5bb6cc
Commit
fe5bb6cc
authored
Mar 28, 2019
by
S Anand
Browse files
BUG: formhandler should parse dates as UTC. Fixes
#159
parent
9a77826d
Pipeline
#81016
passed with stage
in 2 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/formhandler.template.html
View file @
fe5bb6cc
...
...
@@ -140,7 +140,7 @@ Each template receives these variables:
fmt =
==
"
string
"
&&
colinfo.type =
==
"
number
"
?
numeral
(
val
).
format
(
colinfo.format
)
:
fmt =
==
"
string
"
&&
colinfo.type =
==
"
date
"
?
moment
(
val
).
format
(
colinfo.format
)
:
moment
.utc
(
val
).
format
(
colinfo.format
)
:
val
,
col_link
%
>
...
...
@@ -395,7 +395,7 @@ Each template receives these variables:
val =
row[colinfo.name],
disp =
(fmt
==
"
function
"
?
colinfo.format
({
index:
rowIndex
,
name:
colinfo.name
,
value:
val
,
row:
row
,
data:data
})
:
fmt =
==
"
string
"
&&
colinfo.type =
==
"
number
"
?
numeral
(
val
).
format
(
colinfo.format
)
:
fmt =
==
"
string
"
&&
colinfo.type =
==
"
date
"
?
moment
(
val
).
format
(
colinfo.format
)
:
fmt =
==
"
string
"
&&
colinfo.type =
==
"
date
"
?
moment
.utc
(
val
).
format
(
colinfo.format
)
:
val
)
%
>
<div>
<strong><
%=
colinfo.name
%
></strong>
:
...
...
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