RDT
                                
                                
                                
                                    RDT copied to clipboard
                            
                            
                            
                        Make DatetimeTransformer timezone-aware
The current DatetimeTransformer is converting the datetime values to integer and back without considering the timezones.
The timezones could be added as a new column, either categorical, using the CategorialTransformer, in a fashion similar to how the NullTransformer is being used, or numerical.
The DTTransformer has been replaced by the new DatetimeTransformer implemented in #101 so this issue is not precise anymore.
However, the new DatetimeTransformer is still unaware of timezones, so I'm changing the description of the issue to address this topic properly.
Title and description have been changed. This are the old ones:
Make DTTransform use UTC
Currently,
DTTransformeruses the time.localtime and time.mktime to transform datetime values to numeric and back.The problem is that both of them work using as reference the local timezone. I propose instead using time.gmtime and [calendar.timegm]https://docs.python.org/3/library/calendar.html#calendar.timegm) that uses as reference UTC.
Also, delete the casting to
floatand multiplying for10e9if it's not really needed, because this way will avoid floating point rounding issues.