From 9617629fd159ed7434b0836fc66ef1c422b73b7e Mon Sep 17 00:00:00 2001
From: "Bradley M. Froehle" <brad.froehle@gmail.com>
Date: Thu, 2 Jun 2011 17:32:14 -0700
Subject: [PATCH] Issue #1176904: Initial login generates a timezone warning

---
 cas.module |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cas.module b/cas.module
index cc5344d..58654fd 100644
--- a/cas.module
+++ b/cas.module
@@ -1194,7 +1194,8 @@ function cas_user_register($cas_name, $options = array()) {
     $account = user_save($account, $edit);
   }
 
-  return $account;
+  // Reload to ensure that we have a fully populated user object.
+  return user_load($account->uid);
 }
 
 /**
-- 
1.7.5.3

