Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 21 10:58

    jskeet on master

    Remove GetTypeInfo where it was… (compare)

  • Nov 21 10:58
    jskeet closed #1593
  • Nov 21 10:41
    codecov-io commented #1593
  • Nov 21 10:20
    jskeet opened #1593
  • Nov 15 14:04

    jskeet on master

    Update benchmark uploader with … (compare)

  • Nov 15 14:04
    jskeet closed #1592
  • Nov 15 14:04
    jskeet opened #1592
  • Nov 15 09:16

    jskeet on master

    Handle no JIT modules being pro… (compare)

  • Nov 15 09:16
    jskeet closed #1591
  • Nov 15 09:16
    jskeet opened #1591
  • Nov 14 20:34

    jskeet on master

    Fix script for running benchmar… (compare)

  • Nov 14 20:34
    jskeet closed #1590
  • Nov 14 20:34
    jskeet opened #1590
  • Nov 14 20:23

    jskeet on master

    Conditionally include .NET 5.0 … (compare)

  • Nov 14 20:23
    jskeet closed #1589
  • Nov 14 20:20
    jskeet synchronize #1589
  • Nov 14 20:13
    jskeet opened #1589
  • Nov 13 17:37
    buvinghausen closed #1588
  • Nov 13 17:37
    buvinghausen commented #1588
  • Nov 13 16:41
    jskeet commented #1588
Den
@chakaponden
Ohh, found, it
it's just a port
Jon Skeet
@jonskeet_twitter
No, it's not "just a port". It's a totally separate project, with a fairly different API. The initial code was based on Joda Time, but with a lot of Joda Time's public API made internal - and the remaining public API significantly overhauled. Then over time we refactored a lot of now-internal code as well. So it has a lot in common with Joda Time, but I don't think it's now accurate to describe it as a port.
Douglas Melo
@Linkhi
Hi, Has anyone had this problem?
Time zone Etc / GMT + 3108611 is unknown to source TZDB: 2019c
Jon Skeet
@jskeet
@Linkhi: I'm not surprised that time zone doesn't work, but what is supplying that as a time zone ID in the first place?
Douglas Melo
@Linkhi
@jskeet Sorry, actually the problem is occurring in GeoTimeZone and not in NodaTime. Thank you jskeet
Slaviusz
@Slaviusz
Hey, I'm migrating from netcoreapp2.2 to netcoreapp3.1 and having issues with TZDB conversion failing in EF Core queries. There used to be services.AddJsonOptions(options => options.JsonSerializerOptions.ConfigureForNodaTime(Tzdb);) but it's gone in .NetCore3.1. Any clue? Thanks
Jon Skeet
@jskeet
Please check Stack Overflow - basically you need to use the new NodaTime.Serialization.SystemTextJson package, but I can't give more details right now.
Ben
@explorer_ben_twitter
Hi, I've been trying to work out the best way to solve my issue, but to no avail - I've got existing data in a format like "2020-03-06T18:00:33.0367312+00:00" which I was deserialising to datetime. I've since switched to using Instants for the same fields, and the deserialisation is no longer working, as it can't parse to Instant with the offset. (example error: '2020-03-07T03:24:24.9011659^+00:00'. (^ indicates error position.)) I believe I've set up Noda Time and the Json serialiser settings correctly. The old data unfortunately can't be modified, and new data is saved as Instants. Is there a way to deserialise either into an Instant?
Ben
@explorer_ben_twitter
Should I just use OffsetDateTime as the type instead of Instant? It'll parse the old data and Instants.
Jon Skeet
@jonskeet_twitter
Yes, I would suggest using OffsetDateTime, at least for the serialization. You can convert to an instant afterwards if you need to.
Ben
@explorer_ben_twitter
Thanks! And thanks for your tireless efforts in the community :)
Matteo
@Franklin89
Hi Guys, I am using NodaTime for the first time in my ASP.NET Core Application using Razor Pages. It is working great on the backend side and I am moving forward fast. But I would like to have your insights for the model binding. Should I be using NodaTime Types in my models and QueryString? Because at the moment if I use a LocalDate as a parameter on my OnGet the application crashes...any hints or samples about BestPractices would be appreciated :-)
Stephen A. Imhoff
@Clockwork-Muse
@Franklin89 Maybe this way?
Matteo
@Franklin89
@Clockwork-Muse That would mean implementing custom model binders for each NodaTime Type that I am using...I saw that post, thought there must be some way with writing less code
Kjetil Klaussen
@bulldetektor
Trying to figure out how to add NodaTime Json serialization to a Blazor web assembly project, but I just can't figure out how this is suppose to be done. From what I can see, the way to configure Json settings in net core 3 is to call the services.AddMvcCore().AddJsonOptions(...). But I can't see any extension method for JsonOptions in NodaTime.Serialization.JsonNet? (https://github.com/nodatime/nodatime.serialization/blob/master/src/NodaTime.Serialization.JsonNet/Extensions.cs). What am I missing?
Jon Skeet
@jonskeet_twitter
Could you ask this as a Stack Overflow question or on the serialization repo? I've been actively trying to wind this down as a comms platform, given that any time spent answering someone here is wasted in terms of future people with the same problem.
Kjetil Klaussen
@bulldetektor
@jonskeet_twitter sure!
Didirik
@Didirik
Hi, please, I couldn't find anywhere in documentation, if nodatime supports non-fixed dst timezone transition rules. E.g. info, that for actual system timezone, daylight saving time starts for example at last Sunday in March. Instead of fixed transition time, eg. March 29, 2020. Thank you in advance :)
Stephen A. Imhoff
@Clockwork-Muse
@Didirik - I'm not aware of any real-world DST transition rule that takes place on a specific calendar day each year (there could be some, though). Almost all of them take the form of "nth <n> day in <month>".
I'm less sure about "last" (because that can vary between 4th/5th for some months), but assume it can be. For that matter, I'm relatively certain the rules can be more complicated than just "last".
Jon Skeet
@jskeet
@Didirik: We support the IANA time zone database, which has a bunch of different rules. If you have a more concrete description of what you're trying to, I suggest you ask on Stack Overflow, raise a GitHub issue, or email the mailing list - our experience is that Gitter isn't ideal as a support platform when there's relatively little traffic.
Kevin Avignon
@Kavignon

Hi!

I'm a NodaTime newcomer with a question. Is it possible to convert a time zone provided as a string (ex: "UTC + 4") and convert it to a NodaTime type? I'm looking at the documentation and I can't find my way around. Any help would be greatly appreciated, even if it's just pointing me in the right direction ^^

Read the above comment from @jskeet which lead to me opening an issue on the GitHub repo: nodatime/nodatime#1576
Stephen A. Imhoff
@Clockwork-Muse