Date broken

  • Автор темы Автор темы Stereomike
  • Дата начала Дата начала

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Реакции
30
Баллы
0
{-String.Split-|-{-TimeNow.Date-}-|- -|-0-}

Date command (I stripped the time) in macro editor gets me this:

Execution result: 10/23/2011

In project maker debug and ZP it gives me this: 23.10.2011
Probably because of language settings.

Please fix it.
Or add {-TimeNow.DayDate-}
to get 23

That way I could assemble the date my own and language won't break it.

Haven't seen any fixes for quite a while, would be cool, if you could be a little more communicative about the future of this product and when to expect bug fixes. Great software besides this.
 
btw if anybody has the same problem, this is the solut- no - workaround:
{-JS.Execute-|-var textdate="";var d=new Date();textdate=[d.getMonth()+1]+"/"+[d.getDate()]+"/"+[d.getFullYear()];-}
 
  • Оценить
Реакции: shabbysquire
An old thread, but this helped. The usual ZP date macros were always one day out (yesterday).

Anyway, for UK format: day/month/year:

Код:
Развернуть Свернуть Копировать
{-JS.Execute-|-var textdate="";var d=new Date();textdate=[d.getDate()]+"/"+[d.getMonth()+1]+"/"+[d.getFullYear()];-}
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)