lib/dexcom/blood_glucose/api_handler.rb in dexcom-0.2.0 vs lib/dexcom/blood_glucose/api_handler.rb in dexcom-0.2.1

- old
+ new

@@ -40,20 +40,20 @@ end def query(max_count) { maxCount: max_count, - minutes: MAX_MINUTES + minutes: MAX_MINUTES, + sessionId: Dexcom::Authentication.session_id } end def parse_timestamp(blood_glucose_response_item) timestamp_info = blood_glucose_response_item['WT'] timestamp_regex = /(\d+)000/ timestamp = timestamp_info[timestamp_regex, 1] - utc = '+00:00' - DateTime.parse(Time.at(timestamp.to_i, in: utc).to_s) + DateTime.strptime(timestamp, '%s') end def config @config ||= Dexcom.configuration end