{"id":16466541,"url":"https://github.com/juborajnaofel/phptimezoner","last_synced_at":"2025-07-16T04:44:46.971Z","repository":{"id":221183458,"uuid":"753675744","full_name":"juborajnaofel/phptimezoner","owner":"juborajnaofel","description":"Timezone your php based application","archived":false,"fork":false,"pushed_at":"2024-02-06T15:44:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T02:19:28.251Z","etag":null,"topics":["datetime","php","timezone","timezone-conversion"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juborajnaofel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-06T15:33:06.000Z","updated_at":"2024-02-06T15:45:13.000Z","dependencies_parsed_at":"2024-02-06T16:53:28.286Z","dependency_job_id":null,"html_url":"https://github.com/juborajnaofel/phptimezoner","commit_stats":null,"previous_names":["juborajnaofel/phptimezoner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juborajnaofel/phptimezoner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juborajnaofel%2Fphptimezoner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juborajnaofel%2Fphptimezoner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juborajnaofel%2Fphptimezoner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juborajnaofel%2Fphptimezoner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juborajnaofel","download_url":"https://codeload.github.com/juborajnaofel/phptimezoner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juborajnaofel%2Fphptimezoner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265482398,"owners_count":23774040,"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":["datetime","php","timezone","timezone-conversion"],"created_at":"2024-10-11T11:44:02.962Z","updated_at":"2025-07-16T04:44:46.948Z","avatar_url":"https://github.com/juborajnaofel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phptimezoner\nWhen you are working with different timezones, you may store time in user's timezone store them in UTC and later retrieve again. This is how you could do that.\n\n\nUsage syntax\n```php\n$timeZoner = TimeZoner::get();\n\n$utc = $timeZoner-\u003eanyToUTC('Asia/Dhaka', '2023-10-1 1:00:00', $outputFormate = 'Y-m-d H:i:s', $formateIndex = null, $show = true);\n\n$timeZoner-\u003efromUTCtoAny('Asia/Dhaka', $utc, $outputFormate = 'Y-m-d H:i:s', $formateIndex = null, $show = true);\n\n$timeZoner-\u003ecurrentUTC($outputFormate = 'Y-m-d H:i:s', $formateIndex = null, $show = true);\n\n$timeZoner-\u003ecurrentAny('Asia/Dhaka',$outputFormate = 'Y-m-d H:i:s', $formateIndex = null, $show = true);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuborajnaofel%2Fphptimezoner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuborajnaofel%2Fphptimezoner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuborajnaofel%2Fphptimezoner/lists"}