<s> from redwind import create_app <EOL> from redwind . models import Post <EOL> from redwind . extensions import db <EOL> import datetime <EOL> app = create_app ( ) <EOL> with app . app_context ( ) : <EOL> for post in Post . query . filter ( Post . post_type == '<STR_LIT>' ) : <EOL> if ( post . start_utc and post . start_utcoffset and post . end_utc <EOL> and post . end_utcoffset ) : <EOL> print ( '<STR_LIT>' , post . start_utc , post . end_utc , post . start_utcoffset , post . end_utcoffset ) <EOL> post . start_utc = post . start_utc . replace ( tzinfo = datetime . timezone ( post . start_utcoffset ) ) . astimezone ( datetime . timezone . utc ) . replace ( tzinfo = None ) <EOL> post . end_utc = post . end_utc . replace ( tzinfo = datetime . timezone ( post . end_utcoffset ) ) . astimezone ( datetime . timezone . utc ) . replace ( tzinfo = None ) <EOL> print ( '<STR_LIT>' , post . start_utc , post . end_utc ) <EOL> db . session . commit ( ) </s>
