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
    • 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
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to identify a time zone from a user’s Automation script UI?

Solved1.47K views24th July 2020scheduling
1
David Pernes [SLC]90 21st July 2020 0 Comments

Is there a way to identify the user's time zone from an Automation script?

For instance, if a user is running Cube launcher on a PC that is set to GMT 0, if I target a DMA that is set to GMT+3, how can I determine that GMT 0 has to be used in the Automation script?

If I use C# TimeZone.CurrentTimeZone.StandardName, I always get the server's time zone.

Is there a way to determine the user's timezone?

David Pernes [SLC] Selected answer as best 24th July 2020

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
Miguel Obregon [SLC] [DevOps Catalyst]18.98K Posted 21st July 2020 1 Comment

Hi David,

I could not find a direct way to retrieve the time zone of the connected client machine via C#. However, if you are able to link the Automation script to a button in a Visio file, you could use the placeholder [LocalTime] (more info in DataMiner Help). You can pass the value of this placeholder to the Automation script using a script parameter. For example, if the script name is myScript and the script parameter is myParam, you could define the following data shape:

Data shape: Execute

Value: Script:myScript||myParam=[LocalTime]||NoConfirmation,NoSetCheck

David Pernes [SLC] Selected answer as best 24th July 2020
David Pernes [SLC] commented 21st July 2020

Thanks Miguel. It indeed works as expected.
Using the placeholder LocalTime gives the Automation script the possibility to detect the DateTime of the client.
I can have a client in UTC zone and another in GMT +3, and I’m now able to identify which time is configured on the client’s host.

You are viewing 1 out of 1 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin