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
Digital Corpora is using timezoneless time stamps in its API #64
Comments
There is some promising-looking API documentation for UTC clarity:
Source: https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html |
Hi. We are using TIMESTAMP and it stores in GMT. When we write data with Timezone, it converts and stores it in GMT. We do not use the session time zone. We always pull out in GMT. So we can just slap a Z on it. It comes out |
So if you want, we can just append a |
Just appending a Z is great. But, it's not clear to me how that would be handled within |
Look, we are just doing a digitalcorpora_app/bottle_app.py Line 91 in 72dfc7b
The real issue is that you are using the DictWriter's https://docs.python.org/3/library/csv.html#csv.csvwriter.writerow So you are getting the way the https://docs.python.org/3/library/csv.html#csv.Dialect And what's happening is that So if you want this to work with DictWriter, you're going to need to go into the dict and manually convert the |
We have |
This is following up on #59 and #63.
The
mtime
andmodified
fields emitted in/index.tsv
use the form of ISO-8601 that has a space instead ofT
and no time zone designation.I tried feeding this TSV into a library that uses the more string XML Schema Datatypes
dateTime
format, which requires the letterT
. I'd also like to use thedateTimeStamp
format, which further requires time zone.In
ctools
, I see the MySQL database callbottle_app.py
uses, and it looks like there's no timestamp manipulation between the database call and returning the result.So, it looks like Digital Corpora is delegating timestamp format to MySQL. @simsong , would you be OK with upgrading this to be a bit more strict - using
T
, and addingZ
if that is the known stored timestamp time zone? This could undo the"Z"
addition I'd made in #61.The text was updated successfully, but these errors were encountered: