$post->day = rus_date("j F Y H:i ", strtotime($result['create_date']);
<?php
require "db.php";
require "func.php";
$data = $_POST;
if(isset($data)) {
$post = R::dispense('posts');
$post->group = $data['group'];
$post->text = $data['text'];
$post->day = rus_date("j F Y H:i ", strtotime($result['create_date']);
R::store($post);
}
echo '<script>window.close()</script>';
?>