Commits

Mike Bayer committed c1e6a2a

Merged in mitchellrj/sqlalchemy (pull request #21)

Comments (0)

Files changed (1)

lib/sqlalchemy/dialects/sqlite/base.py

     def visit_now_func(self, fn, **kw):
         return "CURRENT_TIMESTAMP"
 
+    def visit_localtimestamp_func(self, func, **kw):
+        return 'DATETIME(CURRENT_TIMESTAMP, "localtime")'
+
     def visit_true(self, expr, **kw):
         return '1'