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

Ability to not use UTC by default while still being able to use the nuget package #655

Open
IvoTops opened this issue Mar 10, 2022 · 2 comments

Comments

@IvoTops
Copy link

IvoTops commented Mar 10, 2022

There are two places where NPoco forces UTC to be on. I am now using a modified fork because of this. Which IMHO should not be necessary, right?

I cannot switch to UTC with 200+ tables and couple of billion rows. I would love to, it's just not happening.

Is it possible to introduce a global static switch somewhere? These two places are the culprits as far as I can tell;

public sealed class JSONParameters
{ ......
public bool UseUTCDateTime = true;

public PocoColumn()
{
ForceToUtc = true;

@schotime
Copy link
Owner

Yeah, this seems like a good feature. Just need to think about how to implement this without breaking anyone and allowing the most flexibility.

Ideally globally you want to be able to UTC, but to be overridden at the property.

@IvoTops
Copy link
Author

IvoTops commented Mar 23, 2022 via email

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

No branches or pull requests

2 participants