[APP][Pro] Better Logic Library - For Users

Well, you can kind off, but not in the easy ‘formatting’ way: because i didn’t find a all-around solutions independend of locale and timezone.

date('DATETIME', null, 'en')

You will get a tag, you can use the last number if it’s like this.

But if you get this, you will probably get the same result as me:



So, the complete solution would be:
new Date().setHours(18-Number.parseInt(_.last(date('DATETIME', null, 'en'))),0,0,0) - Date.now() < 15*60*1000;
(this is true when less then 15 minutes from your local 18u.

image

2 Likes