Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsplit on different timezone format #8

Open
tijs opened this issue Sep 23, 2011 · 4 comments
Open

rsplit on different timezone format #8

tijs opened this issue Sep 23, 2011 · 4 comments

Comments

@tijs
Copy link

tijs commented Sep 23, 2011

in models.py line 105 it's trying to do an rsplit on the "+" character but in my particular python + django install the timestamp has a different format.

This is the line:

timestamp, tz = resp["SubmittedAt"].rsplit("+", 1) 

And this is the timestamp:

u'SubmittedAt': u'2011-09-23T07:39:47.9044908-04:00',

i.e. there is no + sign in that timestamp

@tijs
Copy link
Author

tijs commented Sep 23, 2011

i've commited a naive fix of this that at least solves my problem. not the prettiest solution i would imagine... Automatique@ddc2658

@laurikari
Copy link

This is an issue also if server time is in UTC; I absolutely definitely want to keep my servers running in UTC.

@jcarbaugh
Copy link

I recently came across this issue as well. tijs's patch worked well for me.

@tijs
Copy link
Author

tijs commented Nov 22, 2011

@jcarbaugh good to hear, please keep in mind that it's not a very solid fix though. All that string mangling should probably be replaced with solid timezone aware code at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants