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

server time in variable #191

Open
breizhwave opened this issue Oct 12, 2023 · 1 comment
Open

server time in variable #191

breizhwave opened this issue Oct 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@breizhwave
Copy link

🆒 Your use case

Hi, was trying to use server time as a variable , is this possible ?

🆕 The solution you'd like

currrently we can access server time in SSG context with the nuxttime component

I need to use server date in other components, any possibility ?

thks

🔍 Alternatives you've considered

No response

ℹ️ Additional info

No response

@breizhwave breizhwave added the enhancement New feature or request label Oct 12, 2023
@danielroe
Copy link
Owner

Could you explain a bit more about what you mean by 'server time'?

Something like?

const time = useState(() => Date.now())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants