Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Fix running on non-Linux systems #19

Merged
merged 1 commit into from
Oct 15, 2016
Merged

Conversation

obskyr
Copy link
Contributor

@obskyr obskyr commented Oct 15, 2016

The time formatting directive %s is non-standard and therefore not available on non-Linux systems. This pull request switches over all uses of %s to a cross-platform approach. It's still not entirely easy to get the Pushjet server running on Windows, for example, but with this PR it's at least possible without having to modify the code.

@Mechazawa Mechazawa merged commit e7fbb3e into Pushjet:master Oct 15, 2016
@Kriskras99
Copy link
Contributor

Kriskras99 commented Oct 15, 2016

In file models/subscription.py on line 37 you changed timestamp_checked.strftime('%s') in timestamp_created - datetime.utcfromtimestamp(0)).total_seconds() shouldn't this be timestamp_checked - datetime.utcfromtimestamp(0)).total_seconds()?
Otherwise timestamp_checked will return the same value as timestamp

@obskyr
Copy link
Contributor Author

obskyr commented Oct 15, 2016

@Kriskras99 ...It should absolutely. I guess that's what happens when you write code at 6 AM. I thought I changed that copy-paste ding.

Mechazawa added a commit that referenced this pull request Oct 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants