Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Format Time/DateTime with time zone offset
Add this line to your application's Gemfile:
gem 'formatter-date'
And then execute:
$ bundle
Or install it yourself as:
$ gem install formatter-date
# By default it will use the ISO8601 formatting.
formatter = Formatter::Date.new('Asia/Karachi')
formatter.format(Time.now) # "2015-02-22T03:48:07+05:00"
# Available formats iso8601, xmlschema, jisx0301, rfc3339
formatter = Formatter::Date.new('Asia/Karachi', :jisx0301)
formatter.format(Time.now) # "H27.02.22T03:48:07+05:00"
# You can also provide fractional seconds to be used with formats
formatter = Formatter::Date.new('Asia/Karachi', :iso8601, 2)
formatter.format(Time.now) # 2015-02-22T03:48:07.46+05:00
# Provide a custom string formatting (delegates to strftime)
formatter = Formatter::Date.new('Asia/Karachi', '%FT%T%:z')
formatter.format(Time.now) # "2015-02-22T03:48:07+05:00"
# Get configured time zone identifier
formatter.identifier # "Asia/Karachi"
# Get configured time zone offset
formatter.offset # (5/24)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that formatter-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.