Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Kanban workshop
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

IAS – How to get the current time of the client machine?

Solved554 views29th March 2024IAS IAS Toolkit interactive automation script
3
Michiel Saelen [SLC] [DevOps Enabler]5.68K 28th March 2024 0 Comments

The interactive script runs on the DM server, so if I get ‘DateTime.Now’ it gives me the time of the server. However, I want to know the time on the client’s machine triggering the Interactive automation script. What would be the best way to retrieve this information?

Michiel Saelen [SLC] [DevOps Enabler] Selected answer as best 29th March 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Sebastiaan Dumoulein [SLC] [DevOps Enabler]12.83K Posted 28th March 2024 3 Comments

I’m not sure if there is a way to know this and I would argue if this is needed. All processing and storing of datetimes on the backend can and most likely should be UTC.

If a DateTime needs to be presented to the user, it’s the responsibility of the frontend (client) to make that conversion using the local timezone.

Do you mind sharing the reason why you need the timezone of the client?

Michiel Saelen [SLC] [DevOps Enabler] Selected answer as best 29th March 2024
Michiel Saelen [SLC] [DevOps Enabler] commented 28th March 2024

Hi Sebastiaan,
It is to know when the user is doing an action we can capture what time he did it (time and TZ). In addition, when we want to provide feedback on when events start/end we can show it in the timezone the user is in. To know the timezone of the user we need to get his current time or timezone might be sufficient actually.

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 28th March 2024

The time when something happened can be UTC, that doesn’t change depending on a timezone. To provide feedback, you can send the start/end to the client as UTC. The client can then take care of converting that to the local time.

Michiel Saelen [SLC] [DevOps Enabler] commented 29th March 2024

We would need to know in what time zone the user is, so we can trigger the actions at the right moment. If we can’t know it from the IAS, then we will need to give the user the ability to set his TZ on application level.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs