Comments (3)
A workaround I'm using locally is:
diff --git i/src/rp2/configuration.py w/src/rp2/configuration.py
index 0bc1fca..6d5aa05 100644
--- i/src/rp2/configuration.py
+++ w/src/rp2/configuration.py
@@ -13,7 +13,7 @@
# limitations under the License.
import json
-from datetime import date, datetime
+from datetime import date, datetime, timedelta, timezone
from pathlib import Path
from typing import Any, Dict, List, Optional, Set
@@ -197,7 +197,7 @@ class Configuration: # pylint: disable=too-many-public-methods
except Exception as exc:
raise RP2ValueError(f"Error parsing parameter '{name}': {str(exc)}") from exc
if result.tzinfo is None:
- raise RP2ValueError(f"Parameter '{name}' value has no timezone info: {value}")
+ result.replace(tzinfo=timezone(-timedelta(7)))
return result
def type_check_exchange(self, name: str, value: str) -> str:
from rp2.
I hear you, but one of the design principles has been to avoid ambiguity as much as possible. I understand the use case, but I would prefer to remove the ambiguity in the original data, rather than feed RP2 timestamps without timezone. Based on what the above workaround does, it shouldn't be too hard to write a script that adds the time zone to your original spreadsheet.
from rp2.
Makes sense, closing.
from rp2.
Related Issues (20)
- Short term vs. long term gains HOT 5
- Parameter 'crypto_fee' has zero value HOT 3
- Add Support for Brazil
- Add Support for Argentina
- Add Support for South Africa HOT 2
- Incorrect lot exhaustion in HIFO HOT 2
- Few minor suggestions HOT 1
- Uncertain, but considering making a python wallet reader HOT 1
- Per wallet/exchange Specific Identification (FIFO, LIFO, etc...) Resolution HOT 27
- Exception when executing HOT 3
- Question about "Open Positions by Asset" report HOT 2
- Crypto fee in OUT table HOT 24
- FIFO and exchange/wallet cost-basis calculation HOT 5
- RP2 process runs after "DONE" HOT 5
- Investment Expenses can no longer be used for Deductions HOT 10
- Call for GUI coders: create an intuitive GUI to drive RP2 and DaLI HOT 3
- I can def help HOT 2
- Using Pionex data to Rp2 using dali isn't working. __crypto_sent = unknown HOT 4
- Error total in-transaction crypto value < total taxable crypto value HOT 1
- [Request] Expose settings for what constitutes a taxable event HOT 11
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 rp2.