Should the Julian date change depending on the original timestamp's time zone?
For example, do 2020-01-01 +00:00 and 2020-01-01 +05:45 have the same Julian Date?
pandas suggests they do:
In [1]: import pandas as pd
In [2]: pd.Timestamp('2020-01-01', tz='Europe/London').to_julian_date()
Out[2]: 2458849.5
In [3]: pd.Timestamp('2020-01-01', tz='Asia/Kathmandu').to_julian_date()
Out[3]: 2458849.5
Is this a bug in pandas?
It seems julian date implementation doesn't care about the timezone
If you want to take timezone into account, you have to handle it yourself:
The method
to_julian_date()ignoretz: