diff --git a/src/Library/Syncing.elm b/src/Library/Syncing.elm index 4c9cf8cd..19622e3f 100644 --- a/src/Library/Syncing.elm +++ b/src/Library/Syncing.elm @@ -1,6 +1,5 @@ module Syncing exposing (LocalConfig, RemoteConfig, task) -import DateFormat as Date import Json.Decode as Decode import Json.Encode as Json import Maybe.Extra as Maybe @@ -66,31 +65,10 @@ task initialTask localConfig remoteConfig = |> Task.andThen (\maybeModifiedAt -> let - formatDate = - Date.format - [ Date.monthNameAbbreviated - , Date.text " " - , Date.dayOfMonthSuffix - , Date.text " " - , Date.yearNumber - , Date.text ", " - , Date.hourMilitaryFixed - , Date.text ":" - , Date.minuteFixed - , Date.text ":" - , Date.secondFixed - ] - maybeRemoteModifiedAt = Maybe.andThen (Decode.decodeValue Time.decoder >> Result.toMaybe) maybeModifiedAt - - _ = - Debug.log "remote" (Maybe.map (formatDate Time.utc) maybeRemoteModifiedAt) - - _ = - Debug.log "local" (Maybe.map (formatDate Time.utc) localConfig.localData.modifiedAt) in case ( maybeRemoteModifiedAt, localConfig.localData.modifiedAt ) of ( Just remoteModifiedAt, Just localModifiedAt ) ->