默认发布日期的格式
This commit is contained in:
parent
019e4e0630
commit
9be1fe63b4
|
@ -663,7 +663,7 @@ function regex_homework_end_publish_time()
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
if($.trim($("#homework_publish_time").val()) == "")
|
if($.trim($("#homework_publish_time").val()) == "")
|
||||||
{
|
{
|
||||||
$("#homework_publish_time").val(myDate.toLocaleDateString());
|
$("#homework_publish_time").val(myDate.getFullYear()+'-'+(myDate.getMonth()+1)+'-'+myDate.getDate());
|
||||||
}
|
}
|
||||||
var publish_time = Date.parse($("#homework_publish_time").val());
|
var publish_time = Date.parse($("#homework_publish_time").val());
|
||||||
var end_time = Date.parse($("#homework_end_time").val());
|
var end_time = Date.parse($("#homework_end_time").val());
|
||||||
|
|
|
@ -97,7 +97,7 @@ function regex_homework_end_publish_time()
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
if($.trim($("#homework_publish_time").val()) == "")
|
if($.trim($("#homework_publish_time").val()) == "")
|
||||||
{
|
{
|
||||||
$("#homework_publish_time").val(myDate.toLocaleDateString());
|
$("#homework_publish_time").val(myDate.getFullYear()+'-'+(myDate.getMonth()+1)+'-'+myDate.getDate());
|
||||||
}
|
}
|
||||||
var end_time = Date.parse($("#homework_end_time").val());
|
var end_time = Date.parse($("#homework_end_time").val());
|
||||||
var publish_time = Date.parse($("#homework_publish_time").val());
|
var publish_time = Date.parse($("#homework_publish_time").val());
|
||||||
|
|
Loading…
Reference in New Issue