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

Support time zone hr:min offsets #1833

Merged
merged 4 commits into from
Aug 7, 2020
Merged

Support time zone hr:min offsets #1833

merged 4 commits into from
Aug 7, 2020

Conversation

mikemoritz
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #1833 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1833      +/-   ##
==========================================
- Coverage   96.19%   96.17%   -0.02%     
==========================================
  Files         140      140              
  Lines       27405    27420      +15     
==========================================
+ Hits        26361    26372      +11     
- Misses       1044     1048       +4     
Flag Coverage Δ
#linux 96.17% <100.00%> (-0.02%) ⬇️
#linux_replay 61.57% <65.00%> (-4.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/lib/time.py 98.79% <100.00%> (+0.24%) ⬆️
synapse/lib/types.py 97.80% <100.00%> (+<0.01%) ⬆️
synapse/lib/trigger.py 93.39% <0.00%> (-0.45%) ⬇️
synapse/lib/view.py 94.10% <0.00%> (-0.26%) ⬇️
synapse/cortex.py 95.53% <0.00%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8dff30b...d206b13. Read the comment docs.

"source": [
"Despite storing ``time`` types as epoch millis, Storm does not accept millis format as direct input. For example, it is not possible to input a time value in the format ``1544953072324`` (Storm will attempt to interpret that as the string ``YYYYMMDDhhmmssmmmm`` and return an error).\n",
"\n",
"Standard rules regarding :ref:`whitespace` and :ref:`literals` apply. For example, ``\"2018/12/16 09:37:52.324\"`` needs to be entered in single or double quotes, but ``2018/12/16`` does not. Similarly, relative times and the special time value ``?`` need to be placed in single or double quotes.\n",
"\n",
".. NOTE::\n",
" Synapse does not support the storage of an explicit time zone with a time value (i.e., PST, +0500). Synapse is intended to store time values in UTC for consistency, so users will need to convert date / time values to UTC before entering them and convert values to UTC during any automated ingest.\n",
" Synapse does not support the storage of an explicit time zone with a time value (i.e., PST, +0500). Synapse is intended to store time values in UTC for consistency, so users will need to convert date / time values to UTC before entering them and convert values to UTC during any automated ingest. Alternatively, the time zone can be provided in +/-hh:mm format, which will then be used to convert the time to UTC for storage.\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably get to remove the "+0500" from the "does not support" examples now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read this as "we don't store the time zone itself", which is still true since we are just converting to utc and discarding whatever the original time zone was. I'll try to reword though.

@invisig0th invisig0th merged commit 436a982 into master Aug 7, 2020
@invisig0th invisig0th deleted the norm-iso8601 branch August 7, 2020 13:51
@vEpiphyte vEpiphyte added this to the v2.6.0 milestone Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants