# Python Plotly Dash Django testing daylight savings time

**URL:** <https://forum.djangoproject.com/t/python-plotly-dash-django-testing-daylight-savings-time/16138>\
**Category:** Using Django\
**Created:** [September 23, 2022, 11:03am UTC](https://forum.djangoproject.com/t/python-plotly-dash-django-testing-daylight-savings-time/16138 "2022-09-23T11:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavangcc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/pavangcc/32/9995_2.png) [@pavangcc](https://forum.djangoproject.com/u/pavangcc)\
**Post date:** [September 23, 2022, 11:03am UTC](https://forum.djangoproject.com/t/python-plotly-dash-django-testing-daylight-savings-time/16138/1 "2022-09-23T11:03:36Z")

</div>

I have a time series data base where datetime is stored in UTC. A Python Dash date picker and Text box allows selection of date and time.

The pandas DataFrame is made timezone aware and used as the x axis as follows: x=df[‘cdatetime’].dt.tz\_localize(‘utc’).dt.tz\_convert(‘Europe/London’),

The chart and map plot the data correctly, showing times in the correct locale which is currently BST. However I want to test if it still works when daylight savings time ends and locale timezone is GMT.
