Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
Created October 20, 2013 15:24
Show Gist options
  • Save ascendbruce/7071040 to your computer and use it in GitHub Desktop.
Save ascendbruce/7071040 to your computer and use it in GitHub Desktop.
Ruby and ActiveRecord Timezone = Taipei setting
config.time_zone = 'Taipei' # For ActiveRecord (Still UTC in database)
ENV['TZ'] = 'Asia/Taipei' # For ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment