Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utilities.ts « src « vue « ScheduledReports « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1f3577b9b05ef9251d81bccb3705f6b5f22fd7b (plain)
1
2
3
4
5
6
7
8
9
10
/*!
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

export function adjustHourToTimezone(hour: string, difference: number): string {
  return `${(24 + parseFloat(hour) + difference) % 24}`;
}