$rs = Model::whereRaw("UNIX_TIMESTAMP(STR_TO_DATE(CONCAT(`name1`, ' ', `name2` , ' ', `name3`), '%Y-%m-%d %H:%i:%s')) < UNIX_TIMESTAMP()")
$rs = Model::whereRaw("UNIX_TIMESTAMP(STR_TO_DATE(CONCAT(`name1`, ' ', `name2`), '%Y-%m-%d %H:%i:%s')) < UNIX_TIMESTAMP('$timeUTC')")
->get();
SQLSTATE[]: Column not found: 1054 Unknown column 'custom_date' in 'where clause' (SQL: select *, UNIX_TIMESTAMP(STR_TO_DATE(CONCAT(`name1`, ' ', `name2`), '%Y-%m-%d %H:%i:%s')) AS `custom_date` from `DATA_BASE` where `custom_date` < 2020-08-19 15:25:12)
<?php
echo '<select id="List">';
$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC);
foreach($tzlist as $value)
{
echo '<option value='. $value .'>'. $value .'</option>';
}
echo '</select>';
$takeCookie = $_COOKIE['cookie'];
if (in_array($takeCookie, DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC)))
{
echo "Found";
}
else {
echo "Not Found";
}
?>
<script>
$("#List").change(function() {
var tz = $(this).val();
document.cookie = "cookie="+tz;
});
</script>
RewriteRule ^en(?:/(.*))?$ /$1 [R=301,L]
Спасибо, этот вариант подошёл.
Первое правило
https://site.com/en --> 403
Возможно конфликт с моим htaccess.