Snowbridge 5.2.0#1830
Open
Piotr Poniedziałek (pondzix) wants to merge 5 commits into
Open
Conversation
Documentation style reviewI reviewed the diff against
Nice, well-structured addition. 🤖 |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
documentation | b004c21 | Commit Preview URL Branch Preview URL |
Jun 17 2026, 01:07 PM |
Nick (stanch)
requested changes
Jun 17, 2026
| } | ||
| ``` | ||
|
|
||
| * `parseTimestamp(timestampStr, layout)` parses a timestamp string into a JavaScript `Date`. The `layout` argument is optional and defaults to `2006-01-02 15:04:05.999`, the format used by Snowplow enriched event timestamp fields such as `collector_tstamp`. To parse a different format, pass a `layout` using [Go reference time syntax](https://pkg.go.dev/time#pkg-constants), where each component of the reference time `Mon Jan 2 15:04:05 MST 2006` stands for that part of the timestamp. The function throws a `RangeError` if the input does not match the layout. |
Contributor
There was a problem hiding this comment.
Seeing 2006 is a bit weird but I can’t think of a better solution (other than 1234-05-06 12:34:56.999)
Contributor
Author
There was a problem hiding this comment.
In go Mon Jan 2 15:04:05 MST 2006 (or 01/02 03:04:05PM '06 -0700) is the special reference time and you build your layout based on that.
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
Nick (stanch)
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed?
Snowbridge 5.2.0 features
Why?
Snowbridge 5.2.0 release