dmitryelj / RPi-P2000Receiver

P2000 paging autonomous receiver with LCD and browser access
16 stars 7 forks source link

Timestamp is not a timestamp #8

Open tomswinkels opened 5 years ago

tomswinkels commented 5 years ago

https://github.com/dmitryelj/RPi-P2000Receiver/blob/977561690bb51f6c9e28790586eccf06eccb7d60/p2000.py#L77

dmitryelj commented 5 years ago

True, will fix it a bit later.

mjs1987 commented 4 years ago

same here, what can i do

dmitryelj commented 4 years ago

The timestamp in this format (like "2020-10-17 08:18:37") is coming from multimon-ng, so I keep it the same.

You can convert the string to any other format you like with a simple code as: d_str = datetime.strptime(self.timestamp, "%Y-%m-%d %H:%M:%S").strftime("%Y-%m-%dT%H:%M:%S") (it's just an idea, maybe there is more compact way to do this)