         if resol in ["minsec", "hourmin"] and not hybrid_handled
           if (resol == "minsec" and tm[4] == 0 and tm[5] != 0) or (resol == "hourmin" and tm[3] == 0 and tm[4] != 0)
             next_format = @formats[@format_order[resol_ndx-1]][1][0]
-            s = tz(t, next_format)
+            s = _strftime(t, next_format)
             break
           else
             hybrid_handled = true
 
         next_format = @formats[@format_order[next_ndx]][1][0]
-        s = tz(t, next_format)
+        s = _strftime(t, next_format)
 
       if @strip_leading_zeros
         ss = s.replace(/^0+/g, "")


    return labels


_two_digit_year = (t) ->
  # Round to the nearest Jan 1, roughly.
  dt = Date(t)
  year = dt.getFullYear()
  if dt.getMonth() >= 7
      year += 1

      try
        dt = Date(t)
        tm = _array(t)
        s = _strftime(t, format)
      catch error
        console.log error
        console.log("Unable to convert tick for timestamp " + t)
