How to handle various time zone users in a MVC application if they want to have data operations in their own time zone?
Server hosted in Oregon and working in UTC Time zone.
I need to have user time zone in their registration.
Related
Actually, I have a scenario where I want my user to be able to use my guacamole service to connect the RDP for 5 hours free. After that, I wanted to charge so I wanted to track down the usage time of the user. Is there any official parameter to set or some API that can help?
I first time using guacamole so have no idea about it. I found a property called api-session-timeout but turns out that it was used to disconnect users after a certain time of inactivity. Whereas in my case I wanted the user to not cross 5 hours. The sessions can also be broken into minutes or hours. I just want to get data on login and logout so I can count 5 hours of usage.
I'm wondering how many hours of programming time it should take using auth0's API to integrate auth0 login and registration from start to finish into an existing website.
I was expecting 10-20 hours max. Is this a correct range? Or should it take less or more time?
How to calculate Session Duration or Call Duration in TokBox API?
We need to display Session/Call duration for each Session-Id, we created from Backend. In our case, only 2 people can connect to a session as we are sharing session-id & token with two users only. Now On the Admin Panel, we need the Actual Call time between these two users.
Is there any API which provides these statics?
There is no such API to calculate the exact call duration.
You can check your invoices on the dashboard under the billing section.
Another way is, you can log the timestamps on event listeners. Like when the first-person joins the session, connectionCreated event gets fired, in that you can log your time stamp and send it to your server. Similarly, when someone leaves the session, you get connectionDestroyed event. Refer to this page for all events related to the session.
You can also refer to our Session Monitoring API - https://tokbox.com/developer/guides/session-monitoring/ which lets you receive real-time session callback events on your server endpoint thereby monitoring the user's session activity.
By using the events mentioned above you can calculate the session duration.
Thanks!
I used to use the firebase console to send noticifications for a game app, and a little while ago, when I chose "scheduled" option and choose a time, the time will show as fixed depending on the machine timezone (e.g. +3:00 GMT Guatemala Time Zone). Now, the only option is "Recepient time zone" (see image below).
Does "Recipient time zone" mean if I choose 5 PM, it will be delivered to the end user at 5 PM his time? while it might be 7 for example on the server time and the notification was supposed to be sent two hours before that?
And if so, then how can I send it at fixed time on a fixed timezone like it used to be regardless of end-user timezone (I want to send a notification when the game is live which is 5 PM on the server, but clients might have different timezones so the notification will mean nothing if received earlier or later)?
For one-time scheduled delivery of notifications, the Firebase Cloud Messaging console has two options:
You can deliver the message at a fixed point in time to all your users, regardless of their timezone.
Say you set the message to be delivered to everyone at 7:30 am Pacific Time. Because I'm based in that timezone, I would receive it over morning coffee. But a friend in Holland would receive at at 4:30 pm their time, since they are 9 time zones ahead of Pacific. But if we'd pick up the phone and call each other, we'd both have just received the message at the same time.
You select this option by picking a specific time zone in the delivery time zone popup.
You can deliver the message at a specific time, according to their configured timezone.
Say you set the message to be delivered to everyone at 7:30 pm in their local timezone. In this case Firebase tries to deliver the message at the same local time to each user. So my Dutch friend would receive the message at 7:30 pm, about 3 hours from now. I would also receive the message at 7:30 pm my time, about 12 hours from now.
You select this option by picking Recipient time zone in the delivery time zone popup (it's at the top of the list).
I'm making a simple analytics admin assuming I'm the owner of a shopping mall as my first project
I've looked up a lot about it but, I couldn't find any information. What I've found out so far is that most existing marketing toole uses cookie and they caclulates it in some ways like they set some cookie with current time and set another cookie when users move to another page on website.
My website is made of AJAX and expressjs with mysql and I'll send user's average duration time to my admin page
Could anyone tell me how to track duration time?
I'm definitely not distributing the idea but it is only for my team prject
This could be accomplished with a combination of localStorage (optionally) and onbeforeunload.
Set the current time when a user first gets to site
Store it in localstorage
When they are about to leave, onbeforeunload, you can save / calculate the duration
https://developer.mozilla.org/en-US/docs/Web/API/Storage/LocalStorage
https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload