Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
datetime unexpected result
#3
That works fine in a python prompt, but it still returns UTC time in a program running on that machine.
In case it matters, this program is being developed using pycharm on a windows laptop with remote deployment to a raspberry pi.
The raspberry pi "knows" the correct timezone and a python prompt on that machine works correctly with the examples posted above.

???
Reply


Messages In This Thread
datetime unexpected result - by PickyBiker - Dec-26-2016, 05:49 PM
RE: datetime unexpected result - by Larz60+ - Dec-26-2016, 07:09 PM
RE: datetime unexpected result - by PickyBiker - Dec-26-2016, 07:23 PM
RE: datetime unexpected result - by Larz60+ - Dec-26-2016, 07:30 PM
RE: datetime unexpected result - by PickyBiker - Dec-27-2016, 12:00 AM
RE: datetime unexpected result - by Larz60+ - Dec-27-2016, 12:44 AM
RE: datetime unexpected result - by PickyBiker - Dec-27-2016, 01:21 AM
RE: datetime unexpected result - by Larz60+ - Dec-27-2016, 03:28 AM
RE: datetime unexpected result - by wavic - Dec-27-2016, 06:30 AM
RE: datetime unexpected result - by PickyBiker - Dec-27-2016, 09:10 PM
RE: datetime unexpected result - by PickyBiker - Dec-27-2016, 10:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unexpected result linton 4 2,009 May-02-2020, 01:15 PM
Last Post: linton
  list sum gives unexpected result Nesso 0 1,708 Feb-04-2020, 08:31 AM
Last Post: Nesso
  Unexpected (?) result with regular expressions guraknugen 2 2,238 Jan-18-2020, 02:33 PM
Last Post: guraknugen
  Confusion with datetime 'dst' function result jsmith1703 4 3,373 Nov-16-2019, 02:55 AM
Last Post: DeaD_EyE
  TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' findbikash 2 9,644 Sep-18-2019, 08:32 AM
Last Post: buran
  Unexpected expected type error result MartinMaker 1 2,065 Feb-16-2019, 05:02 PM
Last Post: micseydel
  unexpected sub result after overloading operator jolinchewjb 1 2,290 Jan-24-2019, 08:23 AM
Last Post: buran
  Erratic Datetime result timsch 0 2,036 Dec-27-2018, 01:49 AM
Last Post: timsch
  Unexpected result eftimios 1 2,590 Dec-02-2018, 07:39 AM
Last Post: Gribouillis
  SQLAlchemy DateTime result 0's AMarotta97 0 2,282 Oct-01-2018, 04:35 AM
Last Post: AMarotta97

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020