Plugins - sqlserver_datetime_fix

StarAdd to favorites

The SQL Server adapter for ActiveRecord uses Time objects
to cast dates from the db. This fails for dates before 1970,
thus some birthdates come back as nil.
This is some kludge to use a DateTime in that case
so we still get the value.

This plugin is based on work by Tim Morgan see also
http://snippets.dzone.com/posts/show/2140

Chris Günther

http://usefulrailsplugins.googlecode.com/svn/trunk/

http://usefulrailsplugins.googlecode.com/svn/trunk/plugins/sqlserver_datetime_fix/

Rails' (MIT)

  • Currently 4.8/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?