public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
fix small timezone issue (#786) with the date that is shown for a todo
lrbalt (author)
Tue Nov 11 06:24:16 -0800 2008
commit  33eba10e88e8c65f23ef0e1292ed66210c73c30c
tree    6a7c8c47af88028f8635ad1a978d4b2660f03338
parent  793f43ef07b823b274aed578ec63b2b4c761d337
...
115
116
117
118
 
119
120
121
...
115
116
117
 
118
119
120
121
0
@@ -115,7 +115,7 @@ class ApplicationController < ActionController::Base
0
   def format_date(date)
0
     if date
0
       date_format = prefs.date_format
0
-      formatted_date = date.strftime("#{date_format}")
0
+      formatted_date = date.in_time_zone(prefs.time_zone).strftime("#{date_format}")
0
     else
0
       formatted_date = ''
0
     end

Comments

gorn Mon Dec 01 18:19:47 -0800 2008

I get undefined method in_time_zone after this change.

More on error:

Showing todos/_todo.html.erb where line #15 raised:

undefined method `in_time_zone’ for Fri, 05 Sep 2008:Date

Extracted source (around line #15):

12: <%= remote_toggle_checkbox unless source_view_is :deferred %> 13: DELEGATION):2:in `map’ app/views/todos/index.html.erb:4:in `_run_erb_47app47views47todos47index46html46erb’ app/controllers/todos_controller.rb:705:in `render_todos_html’ app/controllers/todos_controller.rb:19:in `index’

gorn Tue Dec 02 02:15:41 -0800 2008

I will submit path for this as I found another small things after the upgrade

gorn Tue Dec 02 04:24:22 -0800 2008

AARGH, sorry, i did not migrated correctly – my mistake. Sorry for noise.

lrbalt Tue Dec 02 05:37:49 -0800 2008

is the in_time_zone error solved now or do you still have that problem?