Skip to content

Commit

Permalink
Fix wrong parameter on blade directive. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpasztor87 authored and jamesmills committed Aug 4, 2018
1 parent b6bfd07 commit 01439b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelTimezoneServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ($expression) {
} elseif (count($options) == 2) {
return "<?php echo e(Timezone::convertToLocal($options[0], $options[1])); ?>";
} elseif (count($options) == 3) {
return "<?php echo e(Timezone::convertToLocal($options[0], $options[1], $options[0])); ?>";
return "<?php echo e(Timezone::convertToLocal($options[0], $options[1], $options[2])); ?>";
} else {
return 'error';
}
Expand Down

0 comments on commit 01439b2

Please sign in to comment.