{"id":22053426,"url":"https://github.com/bertrandom/berttimezonebundle","last_synced_at":"2025-05-11T21:14:59.702Z","repository":{"id":66843587,"uuid":"2188228","full_name":"bertrandom/BertTimezoneBundle","owner":"bertrandom","description":"Readable Timezone Field Type for Symfony2","archived":false,"fork":false,"pushed_at":"2012-08-11T03:14:25.000Z","size":687,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-11T21:14:53.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bertrandom.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":"2011-08-10T23:21:52.000Z","updated_at":"2019-08-13T14:48:45.000Z","dependencies_parsed_at":"2023-02-20T12:45:50.625Z","dependency_job_id":null,"html_url":"https://github.com/bertrandom/BertTimezoneBundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2FBertTimezoneBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2FBertTimezoneBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2FBertTimezoneBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2FBertTimezoneBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertrandom","download_url":"https://codeload.github.com/bertrandom/BertTimezoneBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253633147,"owners_count":21939392,"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-30T15:16:41.139Z","updated_at":"2025-05-11T21:14:59.673Z","avatar_url":"https://github.com/bertrandom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Readable Timezone Field Type for Symfony2\n=========================================\n\nThe stock Symfony2 timezone field type organizes all of the Olson Timezone Identifiers in PHP by Continent and displays them to the user. This dropdown is pretty bad from a UI perspective. This bundles provides an alternate dropdown that is similar to the one found when choosing a time zone on a Windows computer.\n\nThis is my first symfony2 bundle, feedback welcome!\n\nInstallation\n------------\n\nEdit your \u003ccode\u003edeps\u003c/code\u003e file and add the following:\n\n```\n[BertTimezoneBundle]\n    git=git://github.com/bertrandom/BertTimezoneBundle.git\n    target=/bundles/Bert/TimezoneBundle\n```\n\nRun the vendors install script:\n\n`\nbin/vendors install\n`\n\nThis will pull down the latest version of this bundle from github. Alternatively you can just put the files in \u003ccode\u003e/vendor/bundles/Bert/TimezoneBundle\u003c/code\u003e\n\nNext, add the namespace to the end of the \u003ccode\u003eregisterNamespaces\u003c/code\u003e bit in \u003ccode\u003eautoload.php\u003c/code\u003e:\n\n\n\u003cpre\u003e\n$loader-\u003eregisterNamespaces(array(\n    'Symfony'          =\u003e array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),\n    'Sensio'           =\u003e __DIR__.'/../vendor/bundles',\n\n    .\n    .\n    .\n\n\t'Bert' \t\t\t   =\u003e __DIR__.'/../vendor/bundles',\n));\n\u003c/pre\u003e\n\nAdd the bundle in \u003ccode\u003eAppKernel.php\u003c/code\u003e:\n\n\u003cpre\u003e\n$bundles = array(\n    new Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle(),\n    new Symfony\\Bundle\\SecurityBundle\\SecurityBundle(),\n\n    .\n    .\n    .\n\n\tnew Bert\\TimezoneBundle\\BertTimezoneBundle(),\n);\n\u003c/pre\u003e\n\nThat's it, the field type should be ready to use.\n\nUsage\n-----\n\nSimply use the field type \u003ccode\u003ereadabletimezone\u003c/code\u003e in your form builder, e.g.:\n\n\u003cpre\u003e\n$builder\n    -\u003eadd('username')\n    -\u003eadd('plainPassword', 'repeated', array('type' =\u003e 'password'))\n\t-\u003eadd('firstname')\n\t-\u003eadd('lastname')\n\t-\u003eadd('email', 'email')\n\t-\u003eadd('timezone', 'readabletimezone')\n;\n\u003c/pre\u003e\n\nData\n----\n\nThe data is taken from the work of two blog posts on the subject of readable timezones:\n\n[Presenting a list of Timezones to the user](http://www.aviblock.com/blog/2009/03/12/presenting-a-list-of-timezones-to-the-user/)\n\n[Olson Time Zone Database to Standard Windows Time Zone v0.1](http://www.timdavis.com.au/data/olson-time-zone-database-to-standard-windows-time-zone-v01/)\n\nI've made mirrors of these two posts and put them in \u003ccode\u003eResources/source/mirrors/\u003c/code\u003e in case the blog posts go away.\n\nThe timezone data itself can be found in \u003ccode\u003eResources/config/timezones.yml\u003c/code\u003e\n\nCredits\n-------\n\nBertrand Fan (\u003ccode\u003ebertrand@fan.net\u003c/code\u003e)\n\nTimezone data provided by Avi Block and Tim Davis, see Data section for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandom%2Fberttimezonebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertrandom%2Fberttimezonebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandom%2Fberttimezonebundle/lists"}