signalpoint / date

The DrupalGap Date module.
0 stars 6 forks source link

date format not working? #2

Open cgfix opened 10 years ago

cgfix commented 10 years ago

This module does not seem to read the date format correctly. At first I noticed that it was displaying the correct 'Date Type' specified in the drupalgap display mode, but not the correct 'Date Format'. Then I created a new 'Date Type' called drupalgap and what it displayed does not look right at all. I see 'M 11 2014 - g:00a' instead of 'Sep 12 2014 5:05 pm'.

signalpoint commented 10 years ago

@cgfix The date() function in jDrupal (https://github.com/easystreet3/jDrupal/blob/7.x-1.x/src/drupal.js#L86) needs to be expanded to support your missing tokens:

M
g
a
jacobembree commented 6 years ago

You can mark this fixed. jDrupal's date() function now accepts "M", "g", and "a".