import arrow


def to_datetime(value):
    if value is None:
        return None

    # Parse ISO8601 datetime
    dt = arrow.get(value)

    # Return python datetime object
    return dt.datetime

import arrow


def to_datetime(value):
    if value is None:
        return None

    # Parse ISO8601 datetime
    dt = arrow.get(value)

    # Convert to UTC
    dt = dt.to('UTC')

    # Return naive datetime object
    return dt.naive

Convert all datetime properties to UTC
Convert all datetime properties to UTC

  import arrow
  
  
  def to_datetime(value):
      if value is None:
          return None
  
      # Parse ISO8601 datetime
      dt = arrow.get(value)
  
-     # Return python datetime object
-     return dt.datetime
+     # Convert to UTC
+     dt = dt.to('UTC')
  
+     # Return naive datetime object
+     return dt.naive
+ 
Convert all datetime properties to UTC
## Code Before:
import arrow


def to_datetime(value):
    if value is None:
        return None

    # Parse ISO8601 datetime
    dt = arrow.get(value)

    # Return python datetime object
    return dt.datetime

## Instruction:
Convert all datetime properties to UTC
## Code After:
import arrow


def to_datetime(value):
    if value is None:
        return None

    # Parse ISO8601 datetime
    dt = arrow.get(value)

    # Convert to UTC
    dt = dt.to('UTC')

    # Return naive datetime object
    return dt.naive
