{"id":21342993,"url":"https://github.com/yetopen/i18n-datetime-behavior","last_synced_at":"2025-03-16T03:12:46.155Z","repository":{"id":9188154,"uuid":"10992144","full_name":"YetOpen/i18n-datetime-behavior","owner":"YetOpen","description":"Yii i18n-datetime-behavior extension fork","archived":false,"fork":false,"pushed_at":"2019-01-30T20:12:47.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-22T15:45:43.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com/extension/i18n-datetime-behavior/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YetOpen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-27T08:54:25.000Z","updated_at":"2021-08-21T14:31:55.000Z","dependencies_parsed_at":"2022-08-30T10:40:55.066Z","dependency_job_id":null,"html_url":"https://github.com/YetOpen/i18n-datetime-behavior","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YetOpen%2Fi18n-datetime-behavior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YetOpen%2Fi18n-datetime-behavior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YetOpen%2Fi18n-datetime-behavior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YetOpen%2Fi18n-datetime-behavior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YetOpen","download_url":"https://codeload.github.com/YetOpen/i18n-datetime-behavior/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818199,"owners_count":20352629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T01:11:34.359Z","updated_at":"2025-03-16T03:12:46.133Z","avatar_url":"https://github.com/YetOpen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"i18n-datetime-behavior\n======================\n\nYii i18n-datetime-behavior extension\nSourced from version 1.1 of http://www.yiiframework.com/extension/i18n-datetime-behavior/\n\nAuthor: Ricardo Grana \u003crickgrana@yahoo.com.br\u003e, \u003cricardo.grana@pmm.am.gov.br\u003e\n\n\nThis extension is a behavior that can be used in models to allow them to automatically parse and format i18N date formats.\n\nThe behavior scans for date and datetime fields in the model attributes, and do the conversions needed.\n\nDocumentation \n=============\n\nRequirements \n------------\n\nYii 1.0.9 or above\nYou need to have defined your desired language at the entry script.\nInstallation \n\nExtract the release file and put it under protected/extensions\n\nUsage \n-----\n\nIn you model, add the following code:\n```php\npublic function behaviors()\n{\n    return array('datetimeI18NBehavior' =\u003e array('class' =\u003e 'ext.DateTimeI18NBehavior')); // 'ext' is in Yii 1.0.8 version. For early versions, use 'application.extensions' instead.\n}\n```\nIMPORTANT! This behavior changes afterFind and beforeSave events. If your model have to have coding, please, don't forget to add the parent reference:\n```php\nprotected function beforeSave(){\n    if (!parent::beforeSave()) return false;\n    ....your code\n}\n```\nThe same for afterFind method. Otherwise, this behavior will not make effect.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetopen%2Fi18n-datetime-behavior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyetopen%2Fi18n-datetime-behavior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetopen%2Fi18n-datetime-behavior/lists"}