From 6e2ac43b791338cf2e08abe789594e55375e4cf1 Mon Sep 17 00:00:00 2001 From: keldon2295 Date: Sat, 19 Oct 2019 20:34:22 -0500 Subject: [PATCH 1/2] Update SlackUser.php Add user timezone to the request --- src/SlackUser.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SlackUser.php b/src/SlackUser.php index 353cdb8..c22c300 100644 --- a/src/SlackUser.php +++ b/src/SlackUser.php @@ -232,4 +232,14 @@ public function getUpdated() { return $this->data['updated']; } + + /** + * Gets the user's timezone. + * + * @return string The user's timezone, or null if no timezone is available. + */ + public function getUsername() + { + return isset($this->data['tz']) ? $this->data['tz'] : null; + } } From a4f1051133d04351c62114e13add5af9b0f6457f Mon Sep 17 00:00:00 2001 From: keldon2295 Date: Sat, 19 Oct 2019 20:37:36 -0500 Subject: [PATCH 2/2] Update SlackUser.php Updated Function Name --- src/SlackUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlackUser.php b/src/SlackUser.php index c22c300..5a9b47a 100644 --- a/src/SlackUser.php +++ b/src/SlackUser.php @@ -238,7 +238,7 @@ public function getUpdated() * * @return string The user's timezone, or null if no timezone is available. */ - public function getUsername() + public function getUserTimezone() { return isset($this->data['tz']) ? $this->data['tz'] : null; }