Return the current date in the current time zone.
()
| 816 | |
| 817 | |
| 818 | def timezone_today(): |
| 819 | """Return the current date in the current time zone.""" |
| 820 | if settings.USE_TZ: |
| 821 | return timezone.localdate() |
| 822 | else: |
| 823 | return datetime.date.today() |
no outgoing calls
no test coverage detected