title: Lubridate problems in R Shiny
body: <p>I have an issue with R shiny. I have written an R shiny application that does various things, one of the things it does is uses the Lubridate function below</p>
  <pre><code>df$UTCTime &lt;- dmy_hms(df$UTCTime)
  
  # note that this error cannot be fixed by using df[,2] instead of the &quot;$&quot; operator, as I have already tried this
  </code></pre>
  <p>This line of code works fine in base R, however in my R shiny application, it gives the output dates as a seemingly random sequence of numbers, like so</p>
  <pre><code>date &lt;- dmy_hms(07/02/2019 22:03:21.714)  
  # this gives the output date = 1549577001.71
  </code></pre>
  <p>I've recently introduced a function to my Shiny app and its caused a whole host of problems, that do not show up when you run the function in a normal R script, and I believe most of them can be traced back to this issue.</p>
  <p>Any help with this would be greatly appreciated!</p>
  <p>Here is a simplified version of my code, that produces the same error (there is no actual error, its just that all of the dates get converted to something like 1549577001.71).</p>
  <pre><code>library(shiny)
  library(lubridate)
  
  converter &lt;- function(input_data){
      df &lt;- input_data
      df$Date &lt;- dmy_hms(df$Date)
      return(df)
  }
  
  ui &lt;- fluidPage(
      sidebarLayout(
          sidebarPanel(),
          mainPanel(
              tableOutput(&quot;contents&quot;)
          )
      )
  )
  
  server &lt;- function(input, output) {
      output$contents &lt;- renderTable({
          Date &lt;- c(&quot;07/02/2019 22:03:21.714&quot;)
          df &lt;- data.frame(Date)
          converter(df)
      })
  }
  
  shinyApp(ui, server)
  
  
  </code></pre>