Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

MikZ's latest activity

Saturday, November 20 2010
5324 config.time_zone not setting default_timezone for AR, causing errors with Pos... was updated in Ruby on Rails
  • MikZ
    MikZ commented at 2:45 AM

    i've figured this out

    rails are setting accessors with automatic timezone conversions
    when you override acessor (with table colum) you will get to serious probl...

Wednesday, October 06 2010
1562 ActiveRecord postgresql_adapter: Include time zone in result of quoted_date( ) was updated in Ruby on Rails
  • MikZ
    MikZ commented at 3:27 PM

    I was wrong.
    Postgres expects local date + time zone of date.

    If you pass time without timezone to postgress and have set TIME ZONE its treated like with timezo...

Tuesday, September 28 2010
4171 Fresh Rails 3 app cannot run performance tests was updated in Ruby on Rails
5722 Fresh Rails 3 app cannot run performance tests was created in Ruby on Rails
  • MikZ
    MikZ created the ticket at 11:54 AM

    I've created fresh rails3 app to benchmark my development and production environents. But unfortunately I've run into this issue:

    Loaded suite /Users/mikz/.rvm...
Sunday, September 26 2010
1569 Email in URL Reproduces Routing Error was updated in Ruby on Rails
  • MikZ
    MikZ commented at 1:42 PM

    Yes it is. Even in 3.0. Dot cannot be in url.

Wednesday, September 15 2010
1562 ActiveRecord postgresql_adapter: Include time zone in result of quoted_date( ) was updated in Ruby on Rails
  • MikZ
    • Tag changed from activerecord, patch, postgresql, quoting to activerecord, patch, postgresql, quoting, timewithzone, timezone, utc
    by MikZ at 6:56 AM

    I think there is one major problem with your solution. If its config.active_record.default_timezone set to something different from UTC (which you need if you w...

Friday, September 10 2010
1562 ActiveRecord postgresql_adapter: Include time zone in result of quoted_date( ) was updated in Ruby on Rails
  • MikZ
    • Importance changed from to
    by MikZ at 6:15 PM

    I've run into this issue yesterday.

    Proper way of solving this is to use utc time and format with time zone offset for column with time zone and whatever to col...

5344 #localtime fails for TimeWithZone-wrapped DateTimes was updated in Ruby on Rails
  • MikZ
    MikZ commented at 3:28 PM

    Meanwhile you can use this workaround:

    class DateTime
      def getlocal

    self.to_time.getlocal.to_datetime
    
    
    
    
    end end