Hi all guys. I tried to look for around a way to set a datetime field with the CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything?
Imagine some processes running on parallel servers: what when one process has to set a datetime field to "now" where "now" MUST BE set using the db-server time? Forget about triggers because that field can assume values different from "now". Should it be possible doing something like : foo = Foo.objects.get(...) #foo.thedatetime = datetime.datetime.now() foo.thedatetime = "current_timestamp" #where thedatetime is a DateTime field foo.save() Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---