| Format character | Description | Example output |
|---|---|---|
| a | 'a.m.' or 'p.m.' | |
| A | 'AM' or 'PM' | |
| b | Month, textual, 3 letters, lowercase. | 'jan' |
| c | ISO 8601 format. | 2008-01-02T10:30:00.000123+02:00, or 2008-01-02T10:30:00.000123 |
| d | '01' to '31' | |
| D | 'Fri' | |
| E | Month, locale specific alternative representation usually used for long date representation. | 'марта' for Russian locale, as opposed to 'March' |
| e | Timezone name. Could be in any format, or might return an empty string, depending on the datetime. | '', 'GMT', '-500', 'US/Eastern', etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen %ip%:%proxy_port%; | |
| server_name %alias_idn%; | |
| error_log /var/log/%web_system%/domains/%domain%.error.log error; | |
| return 301 http://%domain%$request_uri; | |
| location / { | |
| proxy_pass http://%ip%:%web_port%; | |
| location ~* ^.+\.(%proxy_extentions%)$ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost %ip%:%web_port%> | |
| ServerName %domain_idn% | |
| %alias_string% | |
| ServerAdmin %email% | |
| DocumentRoot %docroot% | |
| ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ | |
| Alias /vstats/ %home%/%user%/web/%domain%/stats/ | |
| Alias /error/ %home%/%user%/web/%domain%/document_errors/ | |
| SuexecUserGroup %user% %group% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.directive('dadata', function () { | |
| function link(scope, element) { | |
| $(element).suggestions({ | |
| serviceUrl: 'https://dadata.ru/api/v2', | |
| token: '...', | |
| type: 'ADDRESS', | |
| onSelect: function (suggestion) { | |
| var city = (suggestion.data.city) ? suggestion.data.city : suggestion.data.area_with_type; | |
| scope.data['address'] = suggestion.unrestricted_value; | |
| scope.data['region'] = suggestion.data.region_with_type; |