There are some problems with the datetime tuples from Logger today: 1) Ecto uses microseconds in the fouth sub-element of the time element of the tuple. Logger uses microseconds. I was surprised by this inconsistency. The two kinds of tuples look exactly the same and both Logger and Ecto are "official" Elixir pieces of software.
2) You cannot be sure what timezone the datetime is in. Because by default Logger uses the localtime (which could be anything). And even if you configure logger to use UTC, the datetime tuples do not contain this information. In Elixir 2.0 could timestamps be UTC only? How about using DateTime structs (that will come in Elixir 1.3) instead of the current datetime tuples? That way you know that the timestamp is in UTC just by looking at the data. And more importantly functions the receive the timestamps as arguments can use this timezone data. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/665b50f8-af2c-4654-ba93-988370fe5851%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
