We have converted the format from UTC to Europe/Berlin, but time is unchanged. We're using python and pandas on an ubuntu server.
We have tried to run a code that supposedly should change time as well as the format. Nonetheless, time is the same.
import pandas as pd
df = pd.read_csv('feeds.csv', date_parser=dateparse)
df['created_at'] = df['created_at'].str.replace(' UTC', '')
df['created_at'] = pd.to_datetime(df['created_at'])
df['created_at'].dt.tz_localize('UTC').dt.tz_convert('Europe/Berlin').dt.strftime('%Y-%m-%d %H:%M:%S')
df.to_csv('feeds.csv',index=False)
print(df)
Time should be changed, so that 12:50:13 changes to 14:50:13

df['created_at']=df['created_at'].dt.tz_localize('UTC').dt.tz_convert('Europe/Berlin').dt.strftime('%Y-%m-%d %H:%M:%S')