Skip to content

Instantly share code, notes, and snippets.

@hungpk
Created March 6, 2013 10:21
Show Gist options
  • Save hungpk/5098340 to your computer and use it in GitHub Desktop.
Save hungpk/5098340 to your computer and use it in GitHub Desktop.
module RailsAdmin
module Config
module Fields
module Types
class Datetime
def value
bindings[:object].send(name)
end
end
end
end
end
end
@jackdesert
Copy link

I forked this to be able to set the timezone explicitly: https://gist.github.com/jackdesert/7090731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment