title: Setting a Time-Zone breaks Devise Authenthication
body: <p>I'm using <a href="/questions/tagged/ruby-on-rails-5" class="post-tag" title="show questions tagged &#39;ruby-on-rails-5&#39;" rel="tag">ruby-on-rails-5</a> with <a href="/questions/tagged/devise" class="post-tag" title="show questions tagged &#39;devise&#39;" rel="tag">devise</a> and devise-token-auth.</p>
  
  <p>I did this in my user model and it worked fine:</p>
  
  <pre><code>before_create :skip_confirmation!
  
  # Include default devise modules.
  devise :database_authenticatable, :registerable,
  :recoverable, :rememberable, :trackable, :validatable
  </code></pre>
  
  <p>I was able to create accounts, which got confirmed automatically.
  For other stuff I needed to change the timezone of the application by adding the following to my application.rb.</p>
  
  <pre><code>config.time_zone = 'Europe/Berlin'
  config.active_record.default_timezone = 'Europe/Berlin'
  </code></pre>
  
  <p>The time zone stuff works as well, but for unknown reasons, creating users stopped. If I create one and try to login, this error occurs:</p>
  
  <pre class="lang-none prettyprint-override"><code>A confirmation email was sent to your account at '...'. You must follow the instructions in the email before your account can be activated
  </code></pre>
  
  <p>In my database after creating an account with the new time zones every timestamp value for the user record was inserted correctly (using the new time zones).</p>
  
  <p>How can I fix this?</p>