nuxt-time icon indicating copy to clipboard operation
nuxt-time copied to clipboard

server time in variable

Open breizhwave opened this issue 2 years ago â€ĸ 1 comments

🆒 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 avatar Oct 12 '23 13:10 breizhwave

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

Something like?

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

danielroe avatar Mar 17 '24 19:03 danielroe