mirror of
https://github.com/e107inc/e107.git
synced 2025-06-04 01:45:15 +02:00
issue #83 - datestamp issues on news administration form
This commit is contained in:
parent
f930674a18
commit
142eb4a0f2
@ -1115,8 +1115,8 @@ class admin_newspost
|
|||||||
// ##### Format and submit item to DB
|
// ##### Format and submit item to DB
|
||||||
|
|
||||||
$ix = new news;
|
$ix = new news;
|
||||||
|
// jQuery UI temporary date-time fix - inputdatetime -> inputdate
|
||||||
$_POST['news_start'] = vartrue(e107::getDate()->convert($_POST['news_start'],'inputdatetime'), 0);
|
$_POST['news_start'] = vartrue(e107::getDate()->convert($_POST['news_start'],'inputdate'), 0);
|
||||||
|
|
||||||
if($_POST['news_start'])
|
if($_POST['news_start'])
|
||||||
{
|
{
|
||||||
@ -1129,7 +1129,7 @@ class admin_newspost
|
|||||||
|
|
||||||
if($_POST['news_end'])
|
if($_POST['news_end'])
|
||||||
{
|
{
|
||||||
$_POST['news_end'] = e107::getDate()->convert($_POST['news_end'],'inputdatetime');
|
$_POST['news_end'] = e107::getDate()->convert($_POST['news_end'],'inputdate');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1138,7 +1138,7 @@ class admin_newspost
|
|||||||
|
|
||||||
if($_POST['news_datestamp'])
|
if($_POST['news_datestamp'])
|
||||||
{
|
{
|
||||||
$_POST['news_datestamp'] = e107::getDate()->convert($_POST['news_datestamp'],'inputdatetime');
|
$_POST['news_datestamp'] = e107::getDate()->convert($_POST['news_datestamp'],'inputdate');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user