Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kinoklub-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kinoklub-api - npm Package Compare versions

Comparing version 0.0.1-next.6 to 0.0.1-next.7

13

helpers/global.helper.js

@@ -19,14 +19,19 @@ const TIMEZONE = '.000+01:00';

const today = new Date();
const day = today.getDate();
const month = today.getMonth();
const year = today.getFullYear();
const addLeadingZero = (num) => {
return num < 10 ? `0${num}` : `${num}`;
};
if (weekDay === 'Dnes' || weekDay === 'Today') {
dateTime = `${today.getFullYear()}-${today.getMonth() + 1}-${today.getDate()}T${hour}:00${TIMEZONE}`;
dateTime = `${year}-${addLeadingZero(month + 1)}-${addLeadingZero(day)}T${hour}:00${TIMEZONE}`;
}
else if (weekDay === 'Zítra' || weekDay === 'Tomorrow') {
const today = new Date();
dateTime = `${today.getFullYear()}-${today.getMonth() + 1}-${today.getDate() + 1}T${hour}:00${TIMEZONE}`;
dateTime = `${year}-${addLeadingZero(month + 1)}-${addLeadingZero(day + 1)}T${hour}:00${TIMEZONE}`;
}
else {
const [day, month] = dayRest.split('/');
dateTime = `${today.getFullYear()}-${month}-${day}T${hour}:00${TIMEZONE}`;
dateTime = `${year}-${addLeadingZero(+month)}-${addLeadingZero(+day)}T${hour}:00${TIMEZONE}`;
}
return new Date(dateTime).toISOString();
};
{
"name": "kinoklub-api",
"version": "0.0.1-next.6",
"version": "0.0.1-next.7",
"description": "Support library for KinoKlub",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc