lib/netsuite/utilities.rb
# use when displaying times from a NS record
use when displaying times from a NS record
use when displaying times from a NS record
def normalize_datetime_from_netsuite(datetime)
      datetime.new_offset(0) + datetime.offset + Rational(2, 24)
    end
def normalize_datetime_from_netsuite ( datetime ) datetime . new_offset ( 0 ) + datetime . offset + Rational ( 2 , 24 ) end
use when displaying times from a NS record
use when displaying times from a NS record
# the code below eliminates the TimeZone offset then shifts the date forward 2 hours (7200 seconds) # this ensures that ActiveRecord is given a UTC0 DateTime with the exact hour that # was displayed in the NS UI (CST time zone), which will result in the correct display on the web side
datetime
<not_specific>