Created
March 6, 2013 10:21
-
-
Save hungpk/5098340 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RailsAdmin | |
module Config | |
module Fields | |
module Types | |
class Datetime | |
def value | |
bindings[:object].send(name) | |
end | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I forked this to be able to set the timezone explicitly: https://gist.github.com/jackdesert/7090731