Ÿë              I	  a   (   ¨ÿ        ¸        a |	  @          
Ë‰ (a 
  P   �  �       ¬  Ò‰ @   á  Ò‰ €   5a Ò‰ À   Ü  Ô‰    :a Ö‰ @  Fa Ö‰ €  Ua Ô‰ À  !	 Ø‰    �  Ú‰ @         
Í‰              Ð‰        Ñ‰ ba   À   ‚          ­  Ì  @   =‘  )  €   l  Û‰ À   Q)  Ü‰    øò	 ß‰ @  ra    €  O        }a    À  ˆa    à  ”a        a       ´a    @  Èa i  €  Òa i  @  Ýa i     5w  l   À  ãa á‰    Ü     @  ò( a   €         Ï‰              Ð‰        Ó‰              Ð‰               Õ‰              Ð‰            l          ×‰       3       Ð‰                      Ù‰        Ì‰        Î‰ ëa       V  ±      }a ã‰ À          
Ý‰        Þ‰ ýa   H  D"  Í      °„  ×  €  b Ð‰ À  4  K     b L     #b L  @  5b L  €  7&  D  À  Ç!  `&  À  Cb D      Ü      "         à‰               Ð‰        â‰                  s          
ä‰                  x          
æ‰          b Ð‰ Tb    è‰ hb    è‰          b Ð‰ }b    Šb    ë‰           b Ð‰ ©b    í‰ Áb    è‰ ×b    í‰ ðb    À  c    Ó*  c    À  *c    22        S   <0  ¦  "     y&  R   �   9c    õ‰ Hc      Wc    q  qc    Ú  Šc    Ú  ®c    Ú  ¼c    Ú  Ìc    Ú  Ýc    Ú  UN	    Ú  îc    Ú  üc    Ú  d    p  d    Ú           b Ð‰ )d    Š =d    è‰ Kd    è‰ Zd    
-  qd    j(        L   ãa á‰ „d    
Š  d    è‰ ®d    è‰ ¾d    í‰ Õd       çd    q   ùd      6Y €      ‚      @   c!    `   ßœ ›   €   e      6Y €      ‚      @   O     `   c!    €   ßœ ›       @e        ke        ™e    Š        Š               l       Ð‰                  0A  à       +� Š     ²e    Š           0A  à       +� Š     Êe    Š           0A  à       +� Š     âe    Š        Š               l       Ð‰                         0A  à       +� Š            Ð‰        Š        Š        Š        Š f       f    q            D"  Ì  b Ð‰ f    (Š ;f    Å_  [f    í‰ vf    è‰ �f    è‰           b Ð‰ Í(     ªf    .Š          -} h  "     "  l   Èf    0Š Ýf    °q           -} h  {     "  l   ÷f    3Š          b Ð‰ g    D"  Ì  g    5Š           ßœ l   b Ð‰ O     c!    3g    7Š           ßœ l   b Ð‰ c!    Tg    9Š rg    7Š ’g    9Š ¯g    7Š Úg    9Š h    ÷  (h    ÷           ßœ l   b Ð‰ O     c!    Kh    AŠ          ßœ l   b Ð‰ c!    lh    CŠ †h    CŠ  h    CŠ »h    í‰ Üh    í‰ þh    í‰ i    
-         
»,             KŠ    V          
LŠ        Ý‰ ;i      b Ð‰     �%  a   @   Oi      øò	 NŠ     �%  a   @          OŠ        PŠ ]i    í‰ |i    è‰           øò	 NŠ ™i    UŠ          øò	 NŠ ¶i    WŠ Ñi    í‰          b Ð‰ ñ[     ìi    ZŠ          b Ð‰ ñ[  @   j    \Š .j    ¥  watchdog_info identity watchdog_ops ping set_timeout set_pretimeout get_timeleft watchdog_device bootstatus pretimeout min_timeout max_timeout min_hw_heartbeat_ms max_hw_heartbeat_ms reboot_nb restart_nb pm_nb wd_data watchdog_governor watchdog_core_data wdd last_keepalive last_hw_keepalive open_deadline pretimeout_timer watchdog_dev_resume watchdog_dev_suspend last_ping_ms watchdog_set_last_hw_keepalive watchdog_dev_unregister watchdog_dev_register watchdog_cdev_unregister watchdog_release watchdog_core_data_release watchdog_open watchdog_ioctl watchdog_write wdt_is_visible pretimeout_governor_store pretimeout_governor_show pretimeout_available_governors_show identity_show pretimeout_show max_timeout_show min_timeout_show timeleft_show bootstatus_show nowayout_store nowayout_show watchdog_get_status watchdog_stop watchdog_start watchdog_timer_expired watchdog_ping_work watchdog_worker_should_ping watchdog_ping __watchdog_ping watchdog_update_worker watc  L   ?ˆl–Ðz¾”*h¥	@=q¶îÅ1hß�þ^‹7$£~Ycd­€ÏÝƒÜa–äY>” ”¾R( 	ÅÍÀ½q·ÔÅ£à     ?base_time <- function(tz = "") {
  as.POSIXct(strptime("2015-06-01", "%Y-%m-%d", tz = tz))
}

df <- data_frame(
  time1 = base_time("") + 0:6 * 3600,
  time2 = base_time("UTC") + 0:6 * 3600,
  time3 = base_time("Australia/Lord_Howe") + (0:6 + 13) * 3600, # has half hour offset
  y = seq_along(base_time)
)

test_that("inherits timezone from data", {
  if (!is.null(attr(df$time1, "tzone")))
     skip("Local time zone not available")

  # Local time
  p <- ggplot(df, aes(y = y)) + geom_point(aes(time1))
  sc <- layer_scales(p)$x

  expect_true(identical(sc$timezone, NULL))
  expect_equal(sc$get_labels()[1], "00:00")

  # UTC
  p <- ggplot(df, aes(y = y)) + geom_point(aes(time2))
  sc <- layer_scales(p)$x
  expect_equal(sc$timezone, "UTC")
  expect_equal(sc$get_labels()[1], "00:00")
})


test_that("first timezone wins", {
  p <- ggplot(df, aes(y = y)) +
    geom_point(aes(time2)) +
    geom_point(aes(time3), colour = "red") +
    scale_x_datetime(date_breaks = "hour", date_labels = "%H:%M")
  sc <- layer_scales(p)$x
  expect_equal(sc$timezone, "UTC")
})

test_that("not cached across calls", {
  scale_x <- scale_x_datetime(date_breaks = "hour", date_labels = "%H:%M")

  p1 <- ggplot(df, aes(y = y)) + geom_point(aes(time2)) + scale_x
  p2 <- ggplot(df, aes(y = y)) + geom_point(aes(time3)) + scale_x

