0
function GetStartTime(){


        var first=$('#<?php echo $this->SearchLimitDateCookiesName?>-year option:selected').val()+'-'+ $('#<?php echo $this->SearchLimitDateCookiesName?>-month option:selected').val()+'-'+$('#<?php echo $this->SearchLimitDateCookiesName?>-date option:selected').val()+' 00:00:00';
        var last=$('#<?php echo $this->SearchLimitDateCookiesName?>-year option:selected').val()+'-'+ $('#<?php echo $this->SearchLimitDateCookiesName?>-month option:selected').val()+'-'+$('#<?php echo $this->SearchLimitDateCookiesName?>-date option:selected').val()+' 59:59:59';

        var start_time = Date.parse(first).getTime()/1000;

        var last_time = Date.parse(last).getTime()/1000;

        var StartTime=start_time;
        var LastTime=last_time;

        $.cookie('<?php echo $this->SearchLimitDateCookiesName?>-start_time',StartTime,{expires:1});

        $.cookie('<?php echo $this->SearchLimitDateCookiesName?>-last_time',LastTime,{expires:1});

        }

関数 Date.parse() が「最初の」変数を介して日時を送信できない理由。Date.parse('1970-02-23 00:00:00') を入れた場合

私が警告した場合(最初); それは正しくショーの時間です。

4

2 に答える 2