Completed
Push — master ( d4885e...914da3 )
by Stig
16:38 queued 09:09
created
code/extensions/TimezoneMemberExtension.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 		return array_combine($timezones, $timezones);
15 15
 	}
16 16
 
17
-	public function updateCMSFields(FieldList $fields) {   
17
+	public function updateCMSFields(FieldList $fields) {
18 18
 		$fields->removeFieldFromTab('Root', 'Timezone');
19 19
 		$field = DropdownField::create(
20 20
 		  'Timezone',
Please login to merge, or discard this patch.
code/SS_Datetimezone.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	* Returns the date in the raw SQL-format specific to a given timezone passed from the Member class, e.g. “2006-01-18 16:32:04”
10 10
 	*/
11 11
 	public function Format($format) {
12
-		if($this->value){
12
+		if($this->value) {
13 13
 			$date = new DateTime($this->value);
14 14
 			//if the current user has set a timezone that is not the default then use that
15 15
 			$member = Member::currentUser();
Please login to merge, or discard this patch.