.. include:: /Includes.rst.txt .. _feature-1791255571: ========================================================= Feature: Tell the clock what the server counts and allows ========================================================= Description =========== ``getMyClock`` returns, in its fixed shape, also ``currentSessionSeconds`` (worked since the last clock-in or break end), ``remainingTargetSeconds`` (the day's target minus the time worked, never below 0), ``serverTime``, ``allowedActions`` (the punches this client may make now; none while time tracking is off or the punch method is not allowed) and ``showRunningTimer`` from the company settings. The clock in the top bar offers only the punches the server allows, hides the counting time when the company switched it off, and says so when the employee may not punch through the browser. Impact ====== Clients take the punch buttons from ``allowedActions`` instead of deriving them from the state. .. index:: package:adsum-attendance