Changeset 115
- Timestamp:
- 06/13/08 23:17:03 (5 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
app/controllers/application.rb (modified) (1 diff)
-
app/views/deployments/_status.html.erb (modified) (1 diff)
-
app/views/users/_form.html.erb (modified) (1 diff)
-
app/views/users/show.html.erb (modified) (1 diff)
-
config/environment.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/application.rb
r113 r115 19 19 20 20 def set_timezone 21 # default timezone is UTC (Edinburgh)22 Time.zone = logged_in? ? ( current_user.t z rescue TimeZone['Edinburgh']): TimeZone['Edinburgh']21 # default timezone is UTC 22 Time.zone = logged_in? ? ( current_user.time_zone rescue 'UTC'): 'UTC' 23 23 yield 24 Time.zone = TimeZone['Edinburgh']24 Time.zone = 'UTC' 25 25 end 26 26 -
trunk/app/views/deployments/_status.html.erb
r80 r115 27 27 <p> 28 28 <b>Started:</b> 29 <%=h @deployment.created_at.to_s(:log) %> 29 <%=h @deployment.created_at.to_s(:log) %> (<%=h current_user.time_zone rescue 'UTC' %>) 30 30 </p> 31 31 <p> 32 32 <b>Completed:</b> 33 <%=h @deployment.completed_at.to_s(:log)rescue nil %>33 <%=h "#{@deployment.completed_at.to_s(:log)} (#{current_user.time_zone})" rescue nil %> 34 34 </p> 35 35 <% if @deployment.completed? %> -
trunk/app/views/users/_form.html.erb
r73 r115 22 22 <p> 23 23 <b>Timezone</b><br /> 24 <%= time_zone_select 'user', 'time_zone', TZInfo::Timezone.all.sort, {:model => TZInfo::Timezone},{:style => "width:330px;"} %>24 <%= time_zone_select 'user', :time_zone, TimeZone.all, {},{:style => "width:330px;"} %> 25 25 </p> 26 26 -
trunk/app/views/users/show.html.erb
r73 r115 31 31 32 32 <p> 33 <b>Timezone:</b> <%=h @user.t z.to_s %>33 <b>Timezone:</b> <%=h @user.time_zone.to_s %> 34 34 </p> 35 35 <p> -
trunk/config/environment.rb
r113 r115 100 100 # set default time_zone to UTC 101 101 ENV['TZ'] = 'UTC' 102 Time.zone = TimeZone['Edinburgh']102 Time.zone = 'UTC'
