kaui 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module Kaui
2
2
  module DateHelper
3
3
  def format_date(date)
4
4
  # TODO: make timezone configurable
5
- parsed_date = DateTime.parse(date).in_time_zone(ActiveSupport::TimeZone::ZONES_MAP["Pacific Time (US & Canada)"])
5
+ parsed_date = DateTime.parse(date).in_time_zone("Pacific Time (US & Canada)")
6
6
  parsed_date.to_s(:date_only)
7
7
  end
8
8
  end
@@ -25,7 +25,7 @@ class Kaui::Account < Kaui::Base
25
25
  :email => data['email'],
26
26
  :currency => data['currency'],
27
27
  :payment_method_id => data['paymentMethodId'],
28
- :timezone => data['timeZone'] || data['timezone'],
28
+ :timezone => data['timeZone'] || data['time_zone'] || data['timezone'],
29
29
  :address1 => data['address1'],
30
30
  :address2 => data['address2'],
31
31
  :company => data['company'],
@@ -8,6 +8,10 @@
8
8
  <div class="controls">
9
9
  <%= select_tag "bundles", options_for_select([ "" ] + @bundle_names.values.sort, @selected_bundle || 'all') %>
10
10
  </div>
11
+ <dl class="dl-horizontal">
12
+ <dt>Billing timezone:</dt>
13
+ <dd><%= @account.timezone %></dd>
14
+ </dl>
11
15
  </div>
12
16
  </form>
13
17
  <hr/>
data/lib/kaui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaui
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alena Dudzinskaya