Comments (2)
i think it might be fixed now - the tests pass, at least with arrow 0.15.5 - thanks for the pointers regarding the necessary changes!
My impression of the changes is that one must use replace
when changing the locale and setting a value, like microsecond=0
, while shift
is good to use for days=+1
, as you describe. but i don't claim to really get arrow... let's hope that this holds up.
will merge soon, i think, and cut a new release - which i sadly still cannot publish on pip, but hopefully that will be fixed soon as well!
from bonfire.
arrow was changed (way before 0.15.4) to stop replace being used to shift the entire object.
This changes only the second attribute, nothing else.
arw=arrow.utcnow()
arw_later=arw.replace(second=37)
To fix your tests use the shift method which will update the entire object.
arw=arrow.utcnow()
arw_later=arw.shift(seconds=+37)
I'd recommend upping your pinned arrow versions (see changelog) if possible as 0.5.4 is very old, note that 0.15.0+ have breaking changes to do with parsing.
from bonfire.
Related Issues (20)
- Release 0.0.7 / TLS / Python Package Index HOT 1
- Graylog 2.1 HOT 3
- FR: Be able to query 2+ nodes with 1 query HOT 4
- six required version == 1.9.0? HOT 2
- Use offsets to query in chunks HOT 1
- tail to file - output in one line
- known bug: timezone UTC HOT 2
- latest version in pip 0.0.7 does not include endpoint support HOT 8
- Every time I use `-f` I get the `RuntimeError: Query returns more than 10000 log entries. Use offsets to query in chunks.` HOT 2
- maintenance of the project HOT 6
- Getting 404 for my username HOT 9
- Error running Bonfire HOT 6
- -f, --follow mode does not show any output HOT 11
- Is there a bug with timezone? HOT 4
- Not reading all the options in config file HOT 5
- Stream filter should be optional even if the user doesnโt have full permissions HOT 1
- `-f` option together with date wrong result
- `query` should also be allowed to be passed as an option
- add a man page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonfire.