2017/11/26 13:18:01 [emerg] 11359#11359: SSL_CTX_use_PrivateKey_file("/etc/ssl/site_ru/site.key") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: ANY PRIVATE KEY error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
$params = array(
"id" => 1000 * time(),
"sum" => array(
"amount" => 100,
"currency" => 643,
),
"paymentMethod" => array(
"type" => "Account",
"accountId" => 643,
),
"fields" => array(
"account" => "email@yandex.ru"
),
);
"{"message":"Json validation error List((obj.sum.currency,List(ValidationError(List(error.expected.jsstring),WrappedArray()))), (obj.source,List(ValidationError( ▶"
window.onload = function(){ setInterval(function(){
var now = new Date();
var end = new Date(1428961934*1000); // Здесь время из БД
var offset = end - now;
var hours = parseInt(offset/(1000*60*60))%24;
console.log(hours);
var minutes = parseInt(offset/(1000*60))%60;
var second= parseInt(offset/(1000))%60;
var myDivTime=document.getElementById("time");
myDivTime.innerHTML = hours
myDivTime.innerHTML += "-"
myDivTime.innerHTML += minutes
myDivTime.innerHTML += "-"
myDivTime.innerHTML += second;
}, 1000);
}