uawdijnntqw1x1x1
IP : 3.141.33.133
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
nn.axolotls.ru
/
bitrix
/
components
/
bitrix
/
main.field.datetime
/
class.php
/
/
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); use Bitrix\Main\Component\BaseUfComponent; use Bitrix\Main\Context; use Bitrix\Main\UserField\Types\DateTimeType; /** * Class DateTimeUfComponent */ class DateTimeUfComponent extends BaseUfComponent { protected static function getUserTypeId(): string { return DateTimeType::USER_TYPE_ID; } /** * @return array */ protected function getFieldValue(): array { if(!$this->additionalParameters['bVarsFromForm']) { if( isset($this->userField['ENTITY_VALUE_ID']) && $this->userField['ENTITY_VALUE_ID'] <= 0 ) { if($this->userField['SETTINGS']['DEFAULT_VALUE']['TYPE'] === DateTimeType::TYPE_NOW) { $value = \ConvertTimeStamp( time() + \CTimeZone::getOffset(), DateTimeType::FORMAT_TYPE_FULL ); } else { $value = str_replace( ' 00:00:00', '', \CDatabase::formatDate( $this->userField['SETTINGS']['DEFAULT_VALUE']['VALUE'], 'YYYY-MM-DD HH:MI:SS', \CLang::getDateFormat(DateTimeType::FORMAT_TYPE_FULL) ) ); } } else { $value = $this->userField['VALUE']; } } elseif(isset($this->additionalParameters['VALUE'])) { $value = $this->additionalParameters['VALUE']; } else { $value = Context::getCurrent()->getRequest()->get($this->userField['FIELD_NAME']); } return self::normalizeFieldValue($value); } }
/var/www/axolotl/data/www/nn.axolotls.ru/bitrix/components/bitrix/main.field.datetime/class.php