         time.setUTCFullYear 1970
         time.setUTCMonth 0
         time.setUTCDate 1
-        time = (+time / 1000 + (parameter.value.nanosecondDelta ? 0)) * Math.pow 10, parameter.scale
+        time = (+time / 1000 + (parameter.value.nanosecondDelta ? 0)) * Math.pow 10, @resolveScale(parameter)
 
         # seconds since midnight
-        switch parameter.scale
+        switch @resolveScale(parameter)
           when 0, 1, 2
             buffer.writeUInt8 6
             buffer.writeUInt24LE time

    writeTypeInfo: (buffer, parameter) ->
      # ParamMetaData (TYPE_INFO)
      buffer.writeUInt8 @id
      buffer.writeInt32LE parameter.length
    writeParameterData: (buffer, parameter) ->
      # ParamLenData (TYPE_VARBYTE)
      if parameter.value?
        buffer.writeInt32LE parameter.length
        buffer.writeBuffer parameter.value
      else
        buffer.writeInt32LE parameter.length
      
  0x23:
    type: 'TEXT'

    writeTypeInfo: (buffer, parameter) ->
      # ParamMetaData (TYPE_INFO)
      buffer.writeUInt8 @id
      buffer.writeUInt8 @resolveScale(parameter)
    writeParameterData: (buffer, parameter) ->
      # ParamLenData (TYPE_VARBYTE)
      if parameter.value?
