In a Python application I need to know the current day. datetime.date.today() works well. The problem is that when I deploy the program to my server located in the USA, my user base (that is Italian) is presented a date that may not be the correct one (since the server is 6 time zones away).
How can I construct a date object in python according to a specific time zone? Thanks
Everyone agrees that UTC is wonderful but that doesn’t help much if
datetime.date.today()is being run in the US without a timezone. If the user base is in Italy and that’s the date you want to show…