We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Не происходит автоматического обновления даты в поле при update если значение уже присутствует в модели.
Исправления: Для DateTimeField
public function getValue() { $db = ConnectionManager::getDb()->getQueryBuilder(); if ($this->autoNowAdd && $this->getModel()->getIsNewRecord() || $this->autoNow) { return $db->convertToDateTime(); } if ( is_numeric($this->value) ) { return $db->convertToDateTime($this->value); } return $this->value; }
Для DateField
public function getValue() { $db = ConnectionManager::getDb()->getQueryBuilder(); if ($this->autoNowAdd && $this->getModel()->getIsNewRecord() || $this->autoNow ) { return $db->convertToDate(); } if ( is_numeric($this->value) ) { return $db->convertToDate($this->value); } return $this->value; }
The text was updated successfully, but these errors were encountered:
Исправлено в версии 2.0
Sorry, something went wrong.
max107
No branches or pull requests
Не происходит автоматического обновления даты в поле при update если значение уже присутствует в модели.
Исправления:
Для DateTimeField
Для DateField
The text was updated successfully, but these errors were encountered: