Title: $toMillis: >3 fractional-second digits throw raw java.time.DateTimeException instead of truncating to millis (jsonata 2.2.1) · Issue #438 · IBM/JSONata4Java · GitHub
Open Graph Title: $toMillis: >3 fractional-second digits throw raw java.time.DateTimeException instead of truncating to millis (jsonata 2.2.1) · Issue #438 · IBM/JSONata4Java
X Title: $toMillis: >3 fractional-second digits throw raw java.time.DateTimeException instead of truncating to millis (jsonata 2.2.1) · Issue #438 · IBM/JSONata4Java
Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). Pre-existing functional-compatibility gap vs the reference implementation (try.jsonata.org 2.2.1), not a migr...
Open Graph Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). Pre-existing functional-compatibility gap vs the reference implementa...
X Description: Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). Pre-existing functional-compatibility gap vs the reference implementa...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/438
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$toMillis: \u003e3 fractional-second digits throw raw java.time.DateTimeException instead of truncating to millis (jsonata 2.2.1)","articleBody":"Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). Pre-existing functional-compatibility gap vs the reference implementation (try.jsonata.org 2.2.1), not a migration regression.\n\n`$toMillis` with a picture whose fractional-second component supplies more precision than milliseconds throws a raw `java.time.DateTimeException` instead of truncating to milliseconds like the reference.\n\nExample:\n\n```\n$toMillis(\"2026-04-08T19:05:04.01987\", \"[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f1]\")\n```\n\n- JSONata4Java: raw `java.time.DateTimeException: Invalid value for NanoOfSecond (valid values 0 - 999999999): ...`\n- jsonata.org 2.2.1: truncates sub-millisecond precision to milliseconds (round-trips to `...019Z`).\n\nExpected: truncate to millisecond precision (matching the reference) rather than leaking an internal `java.time.DateTimeException`.\n\nReference: jsonata-js 2.2.1.","author":{"url":"https://github.com/wnm3","@type":"Person","name":"wnm3"},"datePublished":"2026-07-07T19:05:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/438/JSONata4Java/issues/438"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:af4c5fda-13e6-290e-fcd1-50aaee83224b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFFA:344A5F:BEE2B:F9078:6A4ECE04 |
| html-safe-nonce | c6e20a28559290272f52799373da7e92b45464b188a0944200ae6b60d389b016 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkZBOjM0NEE1RjpCRUUyQjpGOTA3ODo2QTRFQ0UwNCIsInZpc2l0b3JfaWQiOiI3Nzc3NjQ1MzY0ODc0NDk3NTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99d0e34ffcab06431d88d5f9c94b86fb0d869000e8d97f6e187ea459729253ff |
| hovercard-subject-tag | issue:4831436824 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IBM/JSONata4Java/438/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c0c901c3498c0d49ff5e14795071a67194cca75c45c76189a05f0e3bd7120f2/IBM/JSONata4Java/issues/438 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c0c901c3498c0d49ff5e14795071a67194cca75c45c76189a05f0e3bd7120f2/IBM/JSONata4Java/issues/438 |
| og:image:alt | Surfaced while comparing JSONata4Java against the jsonata-js 2.2.1 test corpus during the Jackson 3 migration (#430 / PR #431). Pre-existing functional-compatibility gap vs the reference implementa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wnm3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git |
| octolytics-dimension-user_id | 1459110 |
| octolytics-dimension-user_login | IBM |
| octolytics-dimension-repository_id | 169904880 |
| octolytics-dimension-repository_nwo | IBM/JSONata4Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169904880 |
| octolytics-dimension-repository_network_root_nwo | IBM/JSONata4Java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width