To sum up the issue - django sitemaps seems to be using the incorrect timezone when processing dates which make up my urls.
1.) The data in the model:
fixture_datetime = 2016-04-03 06:15:00
2.) timezone in settings -
TIME_ZONE = 'Australia/Sydney'
postgres timezone has also been set to Australia/Sydney
3.) Value stored in Database:
"2016-04-03 06:15:00+10"
4.) The problem is the sitemap is retuning the URL as:
http://127.0.0.1:8000/sports/super-rugby/bulls/cheetahs/2016/04/02/
when it should be as follows as per the above data:
http://127.0.0.1:8000/sports/super-rugby/bulls/cheetahs/2016/04/03/
in the error page it is returning the date as:
"2016-04-03 06:15:00+00"
How can I get the sitemaps to use the correct timezone? Is there a setting i am forgetting?