Web: timezone issues with opened date

Created on 12 Apr 2018  路  7Comments  路  Source: gitcoinco/web

Most helpful comment

@owocki, @mbeacom seems like switching to UTC timezone solves problem. I agree that dates should be stored in UTC format.

TIME_ZONE = env.str('TIME_ZONE', default='UTC')

What do You think about changing timezone ? Seems to be fundamental change and i'm not aware of all django internals and problems it might rise with current implementation.

All 7 comments

@owocki, @mbeacom seems like switching to UTC timezone solves problem. I agree that dates should be stored in UTC format.

TIME_ZONE = env.str('TIME_ZONE', default='UTC')

What do You think about changing timezone ? Seems to be fundamental change and i'm not aware of all django internals and problems it might rise with current implementation.

Time zone funkiness is why I changed my life to be running on UTC, just one less thing to worry about :)

  • Mitch Kosowski, Posted at 11:02 AM UTC

@kziemianek Agreed.

We should ensure we're storing UTC and implement: https://docs.djangoproject.com/en/2.0/topics/i18n/timezones/

@mbeacom what do you think about changing settings.py:163 to set the default as UTC as a means of solving the original issue?

thanks @kziemianek

鈿★笍 A tip worth 0.025 ETH (12.85 USD @ $513.94/ETH) has been granted to @kziemianek for this issue from Kevin. 鈿★笍

The sender had the following public comments:

Thanks for the tip about the django setting

Nice work @kziemianek! To redeem your tip, login to Gitcoin at https://gitcoin.co/explorer and select 'Claim Tip' from dropdown menu in the top right, or check your email for a link to the tip redemption page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abitrolly picture abitrolly  路  4Comments

sethmcleod picture sethmcleod  路  4Comments

mbeacom picture mbeacom  路  4Comments

frankchen07 picture frankchen07  路  4Comments

Skyge picture Skyge  路  3Comments