Is there a easy way to automatically change the default formatting of
DateTimeField's when they are used to be printed on the console/
html...

As i see  in db/models/fields/__init__.py:
    def value_to_string(self, obj):
        val = self._get_val_from_obj(obj)
        if val is None:
            data = ''
        else:
            d = datetime_safe.new_datetime(val)
            data = d.strftime('%Y-%m-%d %H:%M:%S')


If i'm right the output format cant be changed, but despite that..the
admin panel uses another weird date format for datetimefield's, for
example:
30 Sept., 2009, 2:30 p.m.

On the frontend, i manually format the dates, but whats the best way
to change the formatting in the admin interface ?

PS: I'm not sure..but this may be the same as #2203 -
http://code.djangoproject.com/ticket/2203
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to