-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix timezone issue #170
Merged
Merged
Fix timezone issue #170
Changes from all commits
Commits
Show all changes
257 commits
Select commit
Hold shift + click to select a range
4bf8d41
Merge pull request #5 from LazerTechnologies/schedule-time-update
ximxim a33ad20
Merge pull request #4 from LazerTechnologies/external-link
ximxim 1d0a7c6
Merge pull request #2 from LazerTechnologies/seo-work
ximxim 6f56e25
Merge pull request #7 from LazerTechnologies/fix-get-now-spoof
lauchness c908114
docs: update readme file
ximxim 1dcfc57
Merge pull request #8 from LazerTechnologies/staging
lauchness ed9ca2b
Merge pull request #3 from LazerTechnologies/generate-tweets
ximxim 3b2996e
Merge pull request #9 from LazerTechnologies/staging
lauchness 1c22b17
chore: teaser page layout cleanup
DjordjeVujatovic 6f3040f
chore: added github workflow to commit empty message to trigger Verce…
ximxim 2e9fe3d
chore: testing with repo url
ximxim 9523dd8
chore: testing with repo owner logic
ximxim 83b6d9f
chore: synced schedule dates
ximxim 61a499c
chore: update footer design + layout
DjordjeVujatovic fee06ec
feat: replace next-image with img to avoid caching issues
lauchness 71d6f4f
Merge pull request #10 from LazerTechnologies/allow-external-users-to…
wilsoncusack 8bbe26d
empty commit
ximxim 90e5b59
feat: restructure validation logic to support zora and external, exte…
wilsoncusack 1bdd3fa
feat: show max per user mint in button message
wilsoncusack 68b5b99
feat: refactor to enable zora write tx
wilsoncusack dca219f
feat: allow zora native minting
wilsoncusack 7394a68
fix: sync useValidate
wilsoncusack 7c39aa0
feat: add zora test mint
wilsoncusack daff830
feat: new crossmint id
wilsoncusack 021a1be
fix: crossmint working with zora
wilsoncusack a73537b
empty commit
ximxim e112cdd
chore: add links to footer
DjordjeVujatovic f2e1249
chore: undo mobile nav styles
DjordjeVujatovic d22ba40
chore: implement new mobile nav design
DjordjeVujatovic 6982853
fix: top margin for community
arpitsrivastava-cb 80701f3
empty commit
ximxim 95f83a6
fix: padding issue
arpitsrivastava-cb 582c4ac
empty commit
ximxim fdc7379
feat: remove console.log
lauchness 02fe7da
Merge pull request #11 from LazerTechnologies/nft-asset-not-showing-u…
lauchness ae194d1
Merge pull request #16 from LazerTechnologies/staging
lauchness bcb8a71
fix: lint fixes on add-zora branch
lauchness fb6cced
feat: make address pill an external link
lauchness b827dac
Merge pull request #15 from LazerTechnologies/arpit/fix-padding
lauchness 5278757
Merge pull request #14 from LazerTechnologies/arpit/fix-community
lauchness 5d1ac85
Merge pull request #20 from LazerTechnologies/staging
lauchness 5707a38
Merge pull request #17 from LazerTechnologies/add-zora/lint-fixes
lauchness e58024e
Merge pull request #19 from LazerTechnologies/ens-links
lauchness 7e3d5f7
Merge pull request #21 from LazerTechnologies/staging
lauchness 6a4c536
Merge pull request #18 from LazerTechnologies/syncing-schedule
ximxim 67d7cac
Merge pull request #22 from LazerTechnologies/staging
ximxim 1baf6e3
fix: schedule issue
ximxim de20af6
Merge branch 'staging'
ximxim fc43356
Merge pull request #1 from LazerTechnologies/wilson/add-zora
lauchness abc3a42
Merge pull request #23 from LazerTechnologies/staging
lauchness 2811029
empty commit
ximxim 969dcc6
feat: replace next-image with img to avoid caching issues
lauchness 271f43d
feat: remove console.log
lauchness 670fab1
empty commit
ximxim c89c50d
empty commit
ximxim 539cd9b
fix: schedule issue
ximxim d643f25
feat: restructure validation logic to support zora and external, exte…
wilsoncusack 07c7a03
feat: show max per user mint in button message
wilsoncusack cb3addf
feat: refactor to enable zora write tx
wilsoncusack 263ec79
feat: allow zora native minting
wilsoncusack 1913e93
fix: sync useValidate
wilsoncusack 82af47b
feat: add zora test mint
wilsoncusack dc2aa53
feat: new crossmint id
wilsoncusack 7f6d0ec
fix: crossmint working with zora
wilsoncusack 0084c72
empty commit
ximxim 4439a6e
fix: lint fixes on add-zora branch
lauchness 031dba8
Merge pull request #24 from LazerTechnologies/master-sync
lauchness 06e0190
feat: add zora contract to test-contracts and add minttype
lauchness bc19cf1
fix: fix base config for testnet
lauchness 4aed130
Merge pull request #13 from LazerTechnologies/chore/implement-mobile-…
DjordjeVujatovic b85208c
Merge pull request #26 from LazerTechnologies/staging
DjordjeVujatovic b8902b0
Merge pull request #12 from LazerTechnologies/chore/layout-and-paddin…
DjordjeVujatovic 49ca067
Merge pull request #27 from LazerTechnologies/staging
DjordjeVujatovic f4f1315
chore: update footer links
DjordjeVujatovic 6a7d51c
feat: typography styles
lauchness a315388
chore: add featured title community page
DjordjeVujatovic 380c5e0
feat: custom typography responsive
lauchness 4438fc2
chore: fix nav button sizing
DjordjeVujatovic 111a30a
feat: trending page layout
lauchness e9b4f75
Merge pull request #30 from LazerTechnologies/fix/connect-wallet-butt…
DjordjeVujatovic d183eda
Merge pull request #31 from LazerTechnologies/staging
DjordjeVujatovic efc506b
chore: changed mobile navbar globally
ximxim bef40c8
fix: banner icon to be used in past and upcoming both
ximxim 7c53b9a
chore: redirect to live stream from /live path
ximxim dcac580
chore: added anirud-samala in git workflow
ximxim 34c0ec2
Merge branch 'staging'
ximxim 9c40e55
feat: mint analytics events
lukasrosario af3ff96
fix: undo change
lukasrosario 760048f
fix: undo change from other repo
lukasrosario 37c7019
empty commit
ximxim 7eaad43
chore: update tending page and component designs
DjordjeVujatovic 37869bd
Merge pull request #25 from LazerTechnologies/zora-contract-and-base-fix
wilsoncusack df076fa
empty commit
ximxim 621c56d
chore: fix trending page top spacing
DjordjeVujatovic e780a2d
chore: fix partnerhero position on home page
DjordjeVujatovic fa7ceba
chore: remove empty space
DjordjeVujatovic f5eed6a
feat: new images on community page, make clickable
wilsoncusack a8e7165
empty commit
ximxim 1825f81
chore: fix PageContainer logic
DjordjeVujatovic 37ca7c3
Merge pull request #35 from LazerTechnologies/lukas/mint-events
lukasrosario 93229c0
empty commit
ximxim ed7f7cf
feat: use mintWithRewards for zora
wilsoncusack b71c9d4
feat: update zora test contracts
wilsoncusack 6061885
empty commit
ximxim 9bcb786
Merge pull request #32 from LazerTechnologies/mobile-nav-bar
ximxim 7ce28ec
Merge pull request #33 from LazerTechnologies/redirect-live
ximxim 65d682f
chore: base banner image updated
ximxim 44424c3
chore: undo page container changes
DjordjeVujatovic a266552
Merge pull request #29 from LazerTechnologies/community/add-featured-…
DjordjeVujatovic 4d79252
Merge pull request #28 from LazerTechnologies/chore/fix-footer-links
DjordjeVujatovic 8743dbf
fix: twitter module null error
ximxim 50116d0
Merge pull request #40 from LazerTechnologies/staging
DjordjeVujatovic b49f5a6
chore: not writing to file if no data is returned
ximxim 4e2da30
chore: silent failure
ximxim ab6c68a
chore: partially updated schedule
ximxim 9e201f4
chore: deleting file only when writing to it
ximxim 3fdbe16
Merge pull request #34 from LazerTechnologies/banner-image-use-in-past
ximxim db92cca
chore: merged staging and resolved conflicts
ximxim b5be243
Merge pull request #38 from LazerTechnologies/wilson/community
lauchness d64fb50
Merge pull request #37 from LazerTechnologies/trending/update-design
lauchness df613d9
feat: button using base text size and disabled state
lauchness ebb7001
Merge branch 'staging' into typography-system
lauchness 7b77187
chore: made tweet cards clickable
ximxim f72b156
chore: updated schedule partners and base contract
ximxim 790bae6
Merge branch 'wilson/zora-update' into config-updates
ximxim ed36e5a
Merge pull request #36 from LazerTechnologies/wilson/zora-update
wilsoncusack 6e8eadb
empty commit
ximxim 3477399
chore: work
ximxim 57f9767
chore: empty commit
ximxim 1be870c
Merge pull request #39 from LazerTechnologies/fix-twitter-module
ximxim 180f3d0
chore: base config update
ximxim 0a30a7d
Merge branch 'staging' into config-updates
ximxim 79ab6a0
feat: add checking for home page, fix partnerhero placement
DjordjeVujatovic cebddf6
fix: add check for window obj
DjordjeVujatovic beb26b7
fix: catch user rejected request on mint dot fun mint
wilsoncusack bf7239f
empty commit
ximxim 350b07b
Merge pull request #43 from LazerTechnologies/fix/partner-hero-homepa…
DjordjeVujatovic ab09692
chore: dummy arweave ID for testing
ximxim 884e2ff
Merge pull request #41 from LazerTechnologies/staging
DjordjeVujatovic 013b639
feat: navbar typography and layout fixes
lauchness 7610453
chore: base day one config
ximxim 7da5575
Merge pull request #42 from LazerTechnologies/config-updates
ximxim 60ab766
Merge pull request #44 from LazerTechnologies/wilson/fix-mint-dot-fun
wilsoncusack 0467afe
empty commit
ximxim 1b8c397
Merge pull request #45 from LazerTechnologies/staging
ximxim 533b131
chore: change base day one to aug 9
ximxim 6fba7dc
Merge branch 'staging'
ximxim e707965
feat: page layout
lauchness c106531
chore: clamping to nearest work
ximxim 0710331
chore: updated tweets file
ximxim 07bb24b
Merge pull request #46 from LazerTechnologies/clamp-tweets
ximxim 89b9635
Merge pull request #47 from LazerTechnologies/staging
ximxim 5c8d415
feat: make mint.fun clickable
wilsoncusack 0f9e6a3
chore: added spacing and took away dollar sign from community grant s…
ximxim d5d92dd
empty commit
ximxim 9d5efb7
feat: mobile nav fixed
lauchness 7eb6eab
feat: not found typography
lauchness 907725c
chore: added spacing between total and number
ximxim 4379356
feat: partner hero typography
lauchness 74128a5
feat: restyle arweve component
DjordjeVujatovic 7db8db8
feat: trending and drop card typographies
lauchness 53187ec
feat: trending and tabs typography
lauchness 1ba40d6
fix: add more spacing
arpitsrivastava-cb 5e789c8
empty commit
ximxim 74c6270
feat: community page typography
lauchness 5e51c77
Merge branch 'staging' into typography-system
lauchness 4f29bb8
chore: add new icon for base
DjordjeVujatovic 5bddde2
Merge pull request #50 from LazerTechnologies/feat/restyle-arweve-com…
DjordjeVujatovic eb0f079
Merge pull request #53 from LazerTechnologies/staging
DjordjeVujatovic 0bc2e85
chore: updated community start and end dates
AshishYelekar b0e2ac3
Merge pull request #51 from LazerTechnologies/arpit/add-more-padding
DjordjeVujatovic d73575d
Merge pull request #54 from LazerTechnologies/staging
DjordjeVujatovic ab68a4c
empty message
AshishYelekar 90ff645
feat: add prop house
arpitsrivastava-cb c272df5
empty commit
ximxim 5e8108b
Merge pull request #48 from LazerTechnologies/wilson/clickable-fun
wilsoncusack e7378c4
Merge pull request #49 from LazerTechnologies/community-spacing-format
wilsoncusack ff7f00c
empty commit
ximxim 8455694
Merge pull request #55 from LazerTechnologies/arpit/add-prop-house
wilsoncusack 57308ee
empty commit
ximxim dfb3929
Merge branch 'staging' into typography-system
lauchness 6374bcf
fix: remove color from typography
lauchness 053d013
chore: update arweave for base day one and partner descriptions
wilsoncusack 49546e7
chore: add dev arweave for base day one
wilsoncusack d556b86
empty commit
ximxim 03972c4
feat: mobile nav layout shift fix
lauchness 30be72b
feat: mint dialog typography
lauchness 91cb388
feat: remove commented old layout
lauchness 69bf70f
Merge pull request #56 from LazerTechnologies/wilson/latest-content
wilsoncusack 131cd5c
empty commit
ximxim d01006d
Merge pull request #57 from LazerTechnologies/staging
lauchness 039ad0f
Merge branch 'staging' into typography-system
lauchness d727adb
chore: base day one completely separate
ximxim bb18c78
Merge pull request #58 from LazerTechnologies/fix-teaser
ximxim 6980323
Merge pull request #59 from LazerTechnologies/staging
ximxim af97c72
Merge pull request #52 from LazerTechnologies/typography-system
ximxim a613927
Merge pull request #60 from LazerTechnologies/staging
ximxim 7cb7b8e
feat: use tailwind prose for article
lauchness 7ea3aab
chore: updated description of partners based on the execution tracker…
ximxim b7f6609
feat: line clamp on calendar card description
lauchness 14f273b
chore: changed contract address
ximxim 2504a0d
Merge pull request #63 from LazerTechnologies/base-day-one-contract-u…
ximxim e520634
Merge pull request #65 from LazerTechnologies/staging
ximxim b58c0f8
chore: actioned column X of the tracker sheet
ximxim 60ca6aa
Merge pull request #62 from LazerTechnologies/calendar-card-descripti…
wilsoncusack 186893a
empty commit
ximxim 3566ba3
Merge pull request #64 from LazerTechnologies/article-use-prose
wilsoncusack 25cc708
empty commit
ximxim 19f7d58
chore: actioned brand color and name for base day one
ximxim 54bc0f9
chore: changed
ximxim 4988b98
Merge pull request #61 from LazerTechnologies/description-update
ximxim 4df7047
Merge pull request #67 from LazerTechnologies/staging
ximxim 559b90d
chore: resolved conflicts
ximxim 8479c5c
chore: fix copy
DjordjeVujatovic de53c3d
chore: change docs to help center
DjordjeVujatovic bfec7cd
chore: fix mobile menu close bug
DjordjeVujatovic 057a7de
Merge remote-tracking branch 'upstream/master'
ximxim 0e1f4fb
fix: scroll area in partner hero full height
lauchness 506f91f
feat: round price to 4 digits
lauchness f6eeeaf
Merge pull request #70 from LazerTechnologies/fix-mobile-scroll-area
lauchness e5e53c2
Merge pull request #71 from LazerTechnologies/staging
lauchness 8e03c42
Merge pull request #69 from LazerTechnologies/chore/fix-mobile-menu
DjordjeVujatovic 5602250
Merge pull request #72 from LazerTechnologies/staging
DjordjeVujatovic 744f8cb
Merge pull request #68 from LazerTechnologies/chore/fix-copy
DjordjeVujatovic ca4c2f5
Merge pull request #73 from LazerTechnologies/staging
DjordjeVujatovic 727f4f7
chore: arweave script
ximxim 24f4377
Merge branch 'staging' into cache-mirror
ximxim 3028c59
chore: getting article from arweave file
ximxim 2cf5cff
Wrap article in try catch (#157)
lauchness 7c8cbd8
sync cb (#159)
wilsoncusack 6c7537e
empty commit
ximxim 96c1a56
empty commit
ximxim 40ec03d
chore: merged staging
ximxim c0cac5d
chore: removed console log
ximxim 7492bcf
chore: password protect endpoint
ximxim 910c3fe
Merge remote-tracking branch 'upstream/master' into master-test
ximxim 47ac4e8
Merge remote-tracking branch 'upstream/master'
ximxim f867c7a
empty commit
ximxim bb298fd
Merge pull request #75 from LazerTechnologies/cache-mirror
ximxim b243459
Merge pull request #76 from LazerTechnologies/staging
ximxim 3069fe0
chore: update fwb description
DjordjeVujatovic afc499d
feat: remove est time from getNow
lauchness 297f114
feat: fix spacing in partner hero
lauchness 27d1880
feat: fix tz date formatting for app/page and app/[slug]/page
lauchness 0e8a17d
Merge pull request #78 from LazerTechnologies/partner-hero-spacing
lauchness f7d0c5c
Merge pull request #77 from LazerTechnologies/chore/update-fwb-descri…
ximxim 335e9a9
Merge branch 'master' into fix-tx-issue
lauchness 8035d28
fix: format today string based on UTC values
lauchness 24b8448
feat: get drop date formatting
lauchness f7ec944
Merge remote-tracking branch 'upstream/master' into fix-timezone-issue
lauchness File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { getNow } from './getNow' | ||
|
||
const padNumber = (num: number) => { | ||
return num < 10 ? `0${num}` : num | ||
} | ||
|
||
export const getDropDate = (spoofDate?: string | null) => { | ||
const now = getNow(spoofDate) | ||
const date = new Date(now) | ||
const year = date.getUTCFullYear() | ||
const month = padNumber(date.getUTCMonth() + 1) | ||
const hours = date.getUTCHours() | ||
const day = hours >= 16 ? date.getUTCDate() : date.getUTCDate() - 1 | ||
|
||
const today = `${year}-${month}-${padNumber(day)}` | ||
return today | ||
} |
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lauchness does this rely on spoofdate everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows for spoof date, but relys on UTC time under the hood