Skip to content

Instantly share code, notes, and snippets.

@aliemre
Created July 2, 2016 16:46
Show Gist options
  • Save aliemre/a40437afd83262e198915ab5e7d9441d to your computer and use it in GitHub Desktop.
Save aliemre/a40437afd83262e198915ab5e7d9441d to your computer and use it in GitHub Desktop.
Symfony Form Choise Type Timezone
<?php
$builder
->add('cargoLRDTimezone', ChoiceType::class, [
'label' => "Cargo LRD",
'placeholder' => "Seçiniz..",
'choices' => [
'CST' => "CST (Central Standard Time)",
'CET' => "CET (Central European Time)",
'CEST' => "CEST (Central European Summer Time)",
'CDT' => "CDT (Central Daylight Time)",
'EST' => "EST (Eastern Standard Time)",
'EET' => "EET (Eastern European Time)",
'EEST' => "EEST (Eastern European Summer Time)",
'EDT' => "EDT (Eastern Daylight Time)",
'GMT' => "GMT (Greenwich Mean Time)",
'PST' => "PST (Pacific Standard Time)",
'PDT' => "PDT (Pacific Daylight Time)",
'IST' => "IST (India Standard Time)",
'BST' => "BST (British Summer Time)",
'SAST' => "SAST (South Africa Standard Time)",
'WAT' => "WAT (West Africa Time)",
'WAST' => "WAST (West Africa Summer Time)",
'WET' => "WET (Western European Time)",
'WEST' => "EAST (Western European Summer Time)",
'CAT' => "CAT (Central Africa Time)",
'EAT' => "EAT (Eastern Africa Time)"
],
'attr' => [
'class' => "form-control selectpicker"
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment