Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vMap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open source
vMap
Commits
055fff46
"src/module_vmap/module/index-vitis.html" did not exist on "e8597475d301fac624e0be6fa13be55331e93b6c"
Commit
055fff46
authored
6 years ago
by
Frédéric Carretero
Browse files
Options
Downloads
Patches
Plain Diff
Correction du paramètre "length_sec" dans les templates de mail.
parent
cafcc903
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/module_gtf/web_service/class/gtf_lib/gtf_object/Order.class.inc
+7
-8
7 additions, 8 deletions
..._gtf/web_service/class/gtf_lib/gtf_object/Order.class.inc
with
7 additions
and
8 deletions
src/module_gtf/web_service/class/gtf_lib/gtf_object/Order.class.inc
+
7
−
8
View file @
055fff46
...
@@ -179,8 +179,7 @@ class orderLib extends GtfLib{
...
@@ -179,8 +179,7 @@ class orderLib extends GtfLib{
function
formatOrderEmail
()
{
function
formatOrderEmail
()
{
// Calcule la date et heure de fin
// Calcule la date et heure de fin
list
(
$iHours
,
$iMinutes
,
$iSeconds
)
=
explode
(
':'
,
$this
->
aFields
[
'length_sec'
]);
list
(
$iHours
,
$iMinutes
,
$iSeconds
)
=
explode
(
':'
,
$this
->
aFields
[
'length_sec'
]);
$oLengthSec
=
new
DateInterval
(
'PT'
.
intval
(
$iHours
)
.
'H'
.
intval
(
$iMinutes
)
.
'M'
.
intval
(
$iSeconds
)
.
'S'
);
$this
->
aFields
[
'length_sec'
]
=
(
intval
(
$iHours
)
*
3600
)
+
(
intval
(
$iMinutes
)
*
60
)
+
intval
(
$iSeconds
);
$this
->
aFields
[
'length_sec'
]
=
$oLengthSec
->
format
(
'%s'
);
if
(
!
empty
(
$this
->
aFields
[
'execution_date'
])
&&
!
empty
(
$this
->
aFields
[
'length_sec'
]))
if
(
!
empty
(
$this
->
aFields
[
'execution_date'
])
&&
!
empty
(
$this
->
aFields
[
'length_sec'
]))
$this
->
aFields
[
'process_date'
]
=
date_add
(
date_create
(
$this
->
aFields
[
'execution_date'
]),
new
DateInterval
(
'PT'
.
intval
(
$this
->
aFields
[
'length_sec'
])
.
'S'
));
$this
->
aFields
[
'process_date'
]
=
date_add
(
date_create
(
$this
->
aFields
[
'execution_date'
]),
new
DateInterval
(
'PT'
.
intval
(
$this
->
aFields
[
'length_sec'
])
.
'S'
));
// Format des dates
// Format des dates
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment