Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
489
Issues
489
List
Boards
Labels
Service Desk
Milestones
Merge Requests
25
Merge Requests
25
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISPConfig
ISPConfig 3
Commits
1543ba74
Commit
1543ba74
authored
Dec 12, 2018
by
Marius Burkard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed autoresponder datetime validation in remote API
parent
26922bd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
interface/lib/classes/validate_autoresponder.inc.php
interface/lib/classes/validate_autoresponder.inc.php
+3
-2
No files found.
interface/lib/classes/validate_autoresponder.inc.php
View file @
1543ba74
...
...
@@ -52,8 +52,9 @@ class validate_autoresponder extends validate_datetime
//$start_date = $app->tform_actions->dataRecord['autoresponder_start_date'];
// Parse date
$start_date_array
=
date_parse_from_format
(
$app
->
lng
(
'conf_format_datetime'
),
$start_date
);
$end_date_array
=
date_parse_from_format
(
$app
->
lng
(
'conf_format_datetime'
),
$field_value
);
$datetimeformat
=
(
isset
(
$app
->
remoting_lib
)
?
$app
->
remoting_lib
->
datetimeformat
:
$app
->
tform
->
datetimeformat
);
$start_date_array
=
date_parse_from_format
(
$datetimeformat
,
$start_date
);
$end_date_array
=
date_parse_from_format
(
$datetimeformat
,
$field_value
);
//calculate timestamps
$start_date_tstamp
=
mktime
(
$start_date_array
[
'hour'
],
$start_date_array
[
'minute'
],
$start_date_array
[
'second'
],
$start_date_array
[
'month'
],
$start_date_array
[
'day'
],
$start_date_array
[
'year'
]);
...
...
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